gh-131185: Use a proper thread-local for cached thread states (gh-132510)
Switches over to a _Py_thread_local in place of autoTssKey, and also fixes a few other checks regarding PyGILState_Ensure after finalization. Note that this doesn't fix concurrent use of PyGILState_Ensure with Py_Finalize; I'm pretty sure zapthreads doesn't work at all, and that needs to be fixed seperately.
P
Peter Bierma committed
b8998fe2d8249565bf30ce6075ed678e1643f2a4
Parent: dcfc91e
Committed by GitHub <noreply@github.com>
on 5/21/2025, 1:01:25 PM