diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-05-04 10:23:29 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-04 10:23:29 (GMT) |
commit | 178a238f25ab8aff7689d7a09d66dc1583ecd6cb (patch) | |
tree | 4d8c90cab84f5b19fb2c1ccd356a5d689d0d2b61 /Python/makeopcodetargets.py | |
parent | 28eea73e7c5405ec41dda0cddae2a3ebaac908f5 (diff) | |
download | cpython-178a238f25ab8aff7689d7a09d66dc1583ecd6cb.zip cpython-178a238f25ab8aff7689d7a09d66dc1583ecd6cb.tar.gz cpython-178a238f25ab8aff7689d7a09d66dc1583ecd6cb.tar.bz2 |
gh-92036: Fix gc_fini_untrack() (GH-92037)
Fix a crash in subinterpreters related to the garbage collector. When
a subinterpreter is deleted, untrack all objects tracked by its GC.
To prevent a crash in deallocator functions expecting objects to be
tracked by the GC, leak a strong reference to these objects on
purpose, so they are never deleted and their deallocator functions
are not called.
(cherry picked from commit 14243369b5f80613628a565c224bba7fb3fcacd8)
Co-authored-by: Victor Stinner <vstinner@python.org>
Diffstat (limited to 'Python/makeopcodetargets.py')
0 files changed, 0 insertions, 0 deletions