summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2019-10-08 00:37:38 (GMT)
committerGitHub <noreply@github.com>2019-10-08 00:37:38 (GMT)
commit4d5f94b8cd20f804c7868c5395a15aa6032f874c (patch)
treeac7b34d63409a67659c9986b80e25970aea9a2fd /Python
parent36e33c360ed7716a2b5ab2b53210da81f8ce1295 (diff)
downloadcpython-4d5f94b8cd20f804c7868c5395a15aa6032f874c.zip
cpython-4d5f94b8cd20f804c7868c5395a15aa6032f874c.tar.gz
cpython-4d5f94b8cd20f804c7868c5395a15aa6032f874c.tar.bz2
bpo-38070: Enhance visit_decref() debug trace (GH-16631)
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.
Diffstat (limited to 'Python')
0 files changed, 0 insertions, 0 deletions