[New-bugs-announce] [issue40522] Subinterpreters: get the current Python interpreter state from Thread Local Storage (autoTSSkey)
STINNER Victor
report at bugs.python.org
Tue May 5 13:12:14 EDT 2020
New submission from STINNER Victor <vstinner at python.org>:
_PyThreadState_GET() gets the current Python thread state from _PyRuntime.gilstate.tstate_current atomic variable.
When I experimented per-interpreter GIL (bpo-40512), I got issues with _PyThreadState_GET() which didn't return the expected Python thread state.
I propose to modify _PyThreadState_GET() in the exprimental isolated subinterpreters mode to get and set the current Python thread state using a Thread Local Storage: autoTSSkey.
----------
components: Interpreter Core
messages: 368182
nosy: vstinner
priority: normal
severity: normal
status: open
title: Subinterpreters: get the current Python interpreter state from Thread Local Storage (autoTSSkey)
versions: Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40522>
_______________________________________
More information about the New-bugs-announce
mailing list