aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Include/internal/pycore_runtime_structs.h
diff options
context:
space:
mode:
authorPeter Bierma <zintensitydev@gmail.com>2025-05-21 09:01:25 -0400
committerGitHub <noreply@github.com>2025-05-21 07:01:25 -0600
commitb8998fe2d8249565bf30ce6075ed678e1643f2a4 (patch)
treeff900111f7852bdec78465e76cca8fc714eaaf0b /Include/internal/pycore_runtime_structs.h
parentdcfc91e4e552e74a43f5fdf049af7a8fe7a784ee (diff)
downloadcpython-b8998fe2d8249565bf30ce6075ed678e1643f2a4.tar.gz
cpython-b8998fe2d8249565bf30ce6075ed678e1643f2a4.zip
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.
Diffstat (limited to 'Include/internal/pycore_runtime_structs.h')
-rw-r--r--Include/internal/pycore_runtime_structs.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/Include/internal/pycore_runtime_structs.h b/Include/internal/pycore_runtime_structs.h
index 6bf3aae7175..12164c7fdd9 100644
--- a/Include/internal/pycore_runtime_structs.h
+++ b/Include/internal/pycore_runtime_structs.h
@@ -223,9 +223,6 @@ struct pyruntimestate {
struct _pythread_runtime_state threads;
struct _signals_runtime_state signals;
- /* Used for the thread state bound to the current thread. */
- Py_tss_t autoTSSkey;
-
/* Used instead of PyThreadState.trash when there is not current tstate. */
Py_tss_t trashTSSkey;