Skip to content

Commit

Permalink
[3.13] pythongh-126914: Store the Preallocated Thread State's Pointer…
Browse files Browse the repository at this point in the history
… in a PyInterpreterState Field (pythongh-127114)

This approach eliminates the originally reported race.  It also gets rid of the deadlock reported in pythongh-96071, so we can remove the workaround added then.

This is mostly a cherry-pick of 1c0a104 (AKA pythongh-126989).  The difference is we add PyInterpreterState.threads_preallocated at the end of PyInterpreterState, instead of adding PyInterpreterState.threads.preallocated.  That avoids ABI disruption.
  • Loading branch information
ericsnowcurrently authored Dec 2, 2024
1 parent 059114c commit 219b826
Show file tree
Hide file tree
Showing 4 changed files with 29,496 additions and 29,442 deletions.
Loading

0 comments on commit 219b826

Please sign in to comment.