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>
M
Miss Islington (bot) committed
178a238f25ab8aff7689d7a09d66dc1583ecd6cb
Parent: 28eea73
Committed by GitHub <noreply@github.com>
on 5/4/2022, 10:23:29 AM