You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Get the "Current" Thread State from a Thread-local #103323
(This is a revival of gh-84702, which @vstinner worked on several years ago.)
For a per-interpreter GIL (PEP 684) we need to start storing the "current" thread state in a thread-local variable, rather than _PyRuntime.tstate_current. There may be other benefits to the approach if we can take advantage of native compiler support (e.g. C11's __thread_local).
Activity
ericsnowcurrently commentedon Apr 6, 2023
CC @markshannon
gh-103323: Get the "Current" Thread State from a Thread-Local Variable (
Merge branch 'main' into superopt
Merge branch 'superopt' into superopt_spec
hauntsaninja commentedon Apr 26, 2023
Looks like this was completed, thanks!
pythongh-103323: Remove PyRuntimeState_GetThreadState()
pythongh-103323: Remove PyRuntimeState_GetThreadState()
gh-103323: Remove PyRuntimeState_GetThreadState() (#104171)
pythongh-103323: Remove current_fast_get() unused parameter
gh-103323: Remove current_fast_get() unused parameter (#114593)
pythongh-103323: Remove current_fast_get() unused parameter (python#1…
python: get the Thread State from a Thread-local
python: get the Thread State from a Thread-local
python: get the Thread State from a Thread-local