diff options
author | Victor Stinner <vstinner@python.org> | 2020-05-05 19:56:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-05 19:56:48 +0200 |
commit | e838a9324c1719bb917ca81ede8d766b5cb551f4 (patch) | |
tree | cc080055a371795862bf113ae248137587989e31 /Python/Python-ast.c | |
parent | b4b53868d7d6cd13505321d3802fd00865b25e05 (diff) | |
download | cpython-git-e838a9324c1719bb917ca81ede8d766b5cb551f4.tar.gz |
bpo-40522: _PyThreadState_Swap() sets autoTSSkey (GH-19939)
In the experimental isolated subinterpreters build mode,
_PyThreadState_GET() gets the autoTSSkey variable and
_PyThreadState_Swap() sets the autoTSSkey variable.
* Add _PyThreadState_GetTSS()
* _PyRuntimeState_GetThreadState() and _PyThreadState_GET()
return _PyThreadState_GetTSS()
* PyEval_SaveThread() sets the autoTSSkey variable to current Python
thread state rather than NULL.
* eval_frame_handle_pending() doesn't check that
_PyThreadState_Swap() result is NULL.
* _PyThreadState_Swap() gets the current Python thread state with
_PyThreadState_GetTSS() rather than
_PyRuntimeGILState_GetThreadState().
* PyGILState_Ensure() no longer checks _PyEval_ThreadsInitialized()
since it cannot access the current interpreter.
Diffstat (limited to 'Python/Python-ast.c')
0 files changed, 0 insertions, 0 deletions