]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-107080: Fix Py_TRACE_REFS Crashes Under Isolated Subinterpreters (gh-107567)
authorEric Snow <ericsnowcurrently@gmail.com>
Thu, 3 Aug 2023 19:51:08 +0000 (13:51 -0600)
committerGitHub <noreply@github.com>
Thu, 3 Aug 2023 19:51:08 +0000 (19:51 +0000)
commit58ef74186795c56e3ec86e8c8f351a1d7826638a
tree592cedc60a6828d0185d6dc84319cbcc97564e8b
parent14fbd4e6b16dcbcbff448b047f7e2faa27bbedba
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.
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