• Victor Stinner's avatar
    bpo-38070: Enhance visit_decref() debug trace (GH-16631) · 4d5f94b8
    Victor Stinner authored
    subtract_refs() now pass the parent object to visit_decref() which
    pass it to _PyObject_ASSERT(). So if the "is freed" assertion fails,
    the parent is used in debug trace, rather than the freed object. The
    parent object is more likely to contain useful information. Freed
    objects cannot be inspected are are displayed as "<object at xxx is
    freed>" with no other detail.
    4d5f94b8
gcmodule.c 64.8 KB