mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
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:
parent
8b7c194c7b
commit
023b7d2141
6 changed files with 212 additions and 247 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue