]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-126914: Store the Preallocated Thread State's Pointer in a PyInterpreterState...
authorEric Snow <ericsnowcurrently@gmail.com>
Tue, 19 Nov 2024 19:59:19 +0000 (12:59 -0700)
committerGitHub <noreply@github.com>
Tue, 19 Nov 2024 19:59:19 +0000 (12:59 -0700)
commit1c0a104eca189a932e0b44ca9bef46cce3d0b801
tree3b619bb0e18539e8e7e55f31739cb8779d7ba19a
parent824afbf548e7128ca57c6faf45cfd6b066a6ee45
gh-126914: Store the Preallocated Thread State's Pointer in a PyInterpreterState Field (gh-126989)

This approach eliminates the originally reported race. It also gets rid of the deadlock reported in gh-96071, so we can remove the workaround added then.
Include/internal/pycore_interp.h
Include/internal/pycore_runtime_init.h
Lib/test/test_interpreters/test_stress.py
Python/pystate.c