]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-112529: Don't untrack tuples or dicts with zero refcount (#117370)
authorSam Gross <colesbury@gmail.com>
Fri, 29 Mar 2024 17:33:04 +0000 (13:33 -0400)
committerGitHub <noreply@github.com>
Fri, 29 Mar 2024 17:33:04 +0000 (13:33 -0400)
commitf05fb2e65c2dffdfae940f2707765c4994925205
treed856903be5f6ab281900fbc2a68ccf7c861ce802
parentddf95b5f16031cdbd0d728e55eb06dff002a8678
gh-112529: Don't untrack tuples or dicts with zero refcount (#117370)

The free-threaded GC sometimes sees objects with zero refcount. This can
happen due to the delay in merging biased reference counting fields,
and, in the future, due to deferred reference counting. We should not
untrack these objects or they will never be collected.

This fixes the refleaks in the free-threaded build.
Python/gc_free_threading.c