]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-46070: _PyGC_Fini() untracks objects (GH-30577)
authorVictor Stinner <vstinner@python.org>
Thu, 13 Jan 2022 18:28:32 +0000 (19:28 +0100)
committerGitHub <noreply@github.com>
Thu, 13 Jan 2022 18:28:32 +0000 (19:28 +0100)
commit1a4d1c1c9b08e75e88aeac90901920938f649832
tree91b55e6551f69713d11f2d9489a4e89b3cb44ee3
parent6be848922bc0f4c632c255c39de82a45b6480286
bpo-46070: _PyGC_Fini() untracks objects (GH-30577)

Py_EndInterpreter() now explicitly untracks all objects currently
tracked by the GC. Previously, if an object was used later by another
interpreter, calling PyObject_GC_UnTrack() on the object crashed if
the previous or the next object of the PyGC_Head structure became a
dangling pointer.
Misc/NEWS.d/next/Core and Builtins/2022-01-13-17-58-56.bpo-46070.q8IGth.rst [new file with mode: 0644]
Modules/gcmodule.c