]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-46070: _PyGC_Fini() untracks objects (GH-30577) (GH-30580)
authorVictor Stinner <vstinner@python.org>
Thu, 13 Jan 2022 19:12:50 +0000 (20:12 +0100)
committerGitHub <noreply@github.com>
Thu, 13 Jan 2022 19:12:50 +0000 (20:12 +0100)
commit52937c26adc35350ca0402070160cf6dc838f359
tree173b93b382257ca8b6317b817591b88f6ed186ae
parent4ddd5da2691bea39e36debbc7f53c7cc4f13904e
bpo-46070: _PyGC_Fini() untracks objects (GH-30577) (GH-30580)

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.

(cherry picked from commit 1a4d1c1c9b08e75e88aeac90901920938f649832)
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