]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-107080: Fix Py_TRACE_REFS Crashes Under Isolated Subinterpreters (gh-107567...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 3 Aug 2023 22:18:29 +0000 (15:18 -0700)
committerGitHub <noreply@github.com>
Thu, 3 Aug 2023 22:18:29 +0000 (00:18 +0200)
commit58af2293c52a1ad3754d254690c0e54f787c545b
tree3e6274e2d60af26d5d7669e52b1213c1db8602bb
parentd2c7b25afba3d86ee20331d9fb722a6fe1f768ac
[3.12] gh-107080: Fix Py_TRACE_REFS Crashes Under Isolated Subinterpreters (gh-107567) (#107599)

gh-107080: Fix Py_TRACE_REFS Crashes Under Isolated Subinterpreters (gh-107567)

The linked list of objects was a global variable, which broke isolation between interpreters, causing crashes. To solve this, we've moved the linked list to each interpreter.
(cherry picked from commit 58ef74186795c56e3ec86e8c8f351a1d7826638a)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
Include/internal/pycore_object.h
Include/internal/pycore_object_state.h
Include/internal/pycore_runtime_init.h
Misc/NEWS.d/next/Core and Builtins/2023-08-02-12-24-51.gh-issue-107080.PNolFU.rst [new file with mode: 0644]
Objects/object.c
Python/pylifecycle.c