summaryrefslogtreecommitdiffstats
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2024-12-02 18:41:57 (GMT)
committerGitHub <noreply@github.com>2024-12-02 18:41:57 (GMT)
commit219b8266db52508eb947fa1ba2cf4aa9e8569685 (patch)
tree80a5c08ebcb507c5b0bf912d30de068c0f322cef /Python/pythonrun.c
parent059114c0a0bc60c1d180eefa54e8483e3a8e9b5e (diff)
downloadcpython-219b8266db52508eb947fa1ba2cf4aa9e8569685.zip
cpython-219b8266db52508eb947fa1ba2cf4aa9e8569685.tar.gz
cpython-219b8266db52508eb947fa1ba2cf4aa9e8569685.tar.bz2
[3.13] gh-126914: Store the Preallocated Thread State's Pointer in a PyInterpreterState Field (gh-127114)
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. This is mostly a cherry-pick of 1c0a104 (AKA gh-126989). The difference is we add PyInterpreterState.threads_preallocated at the end of PyInterpreterState, instead of adding PyInterpreterState.threads.preallocated. That avoids ABI disruption.
Diffstat (limited to 'Python/pythonrun.c')
0 files changed, 0 insertions, 0 deletions