]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-109793: Allow Switching Interpreters During Finalization (gh-109794)
authorEric Snow <ericsnowcurrently@gmail.com>
Wed, 27 Sep 2023 19:41:06 +0000 (13:41 -0600)
committerGitHub <noreply@github.com>
Wed, 27 Sep 2023 19:41:06 +0000 (13:41 -0600)
commit32466c97c06ee5812923d695195394c736eeb707
treee5de52c5dcc30067c6cd79fa97b66d104f911ea4
parentf49958c886a2f2608f1008186d588efc2a98b445
gh-109793: Allow Switching Interpreters During Finalization (gh-109794)

Essentially, we should check the thread ID rather than the thread state pointer.
Include/cpython/pyatomic.h
Include/internal/pycore_interp.h
Include/internal/pycore_pystate.h
Include/internal/pycore_runtime.h
Lib/test/test_interpreters.py
Misc/NEWS.d/next/Core and Builtins/2023-09-25-09-24-10.gh-issue-109793.zFQBkv.rst [new file with mode: 0644]
Python/pystate.c