diff options
author | Victor Stinner <vstinner@python.org> | 2022-01-13 18:28:32 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-13 18:28:32 (GMT) |
commit | 1a4d1c1c9b08e75e88aeac90901920938f649832 (patch) | |
tree | 91b55e6551f69713d11f2d9489a4e89b3cb44ee3 /Misc | |
parent | 6be848922bc0f4c632c255c39de82a45b6480286 (diff) | |
download | cpython-1a4d1c1c9b08e75e88aeac90901920938f649832.zip cpython-1a4d1c1c9b08e75e88aeac90901920938f649832.tar.gz cpython-1a4d1c1c9b08e75e88aeac90901920938f649832.tar.bz2 |
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.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2022-01-13-17-58-56.bpo-46070.q8IGth.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2022-01-13-17-58-56.bpo-46070.q8IGth.rst b/Misc/NEWS.d/next/Core and Builtins/2022-01-13-17-58-56.bpo-46070.q8IGth.rst new file mode 100644 index 0000000..4ed088f --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2022-01-13-17-58-56.bpo-46070.q8IGth.rst @@ -0,0 +1,5 @@ +:c:func:`Py_EndInterpreter` now explicitly untracks all objects currently +tracked by the GC. Previously, if an object was used later by another +interpreter, calling :c:func:`PyObject_GC_UnTrack` on the object crashed if the +previous or the next object of the :c:type:`PyGC_Head` structure became a +dangling pointer. Patch by Victor Stinner. |