GH-126491: Lower heap size limit with faster marking (GH-127519)

* Faster marking of reachable objects

* Changes calculation of work to do and work done.

* Merges transitive closure calculations
This commit is contained in:
Mark Shannon 2024-12-06 10:46:59 +00:00 committed by GitHub
parent 8b7c194c7b
commit 023b7d2141
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 212 additions and 247 deletions

View file

@ -7064,9 +7064,7 @@ int
PyObject_VisitManagedDict(PyObject *obj, visitproc visit, void *arg)
{
PyTypeObject *tp = Py_TYPE(obj);
if((tp->tp_flags & Py_TPFLAGS_MANAGED_DICT) == 0) {
return 0;
}
assert(tp->tp_flags & Py_TPFLAGS_MANAGED_DICT);
if (tp->tp_flags & Py_TPFLAGS_INLINE_VALUES) {
PyDictValues *values = _PyObject_InlineValues(obj);
if (values->valid) {