STINNER Victor <vstin...@python.org> added the comment:

> PyInterpreterState_New call and use PyThreadState *tstate = 
> _PyThreadState_GET();

It is safe to call _PyThreadState_GET() before _PyGILState_Init().

_PyThreadState_GET() calls 
_Py_atomic_load_relaxed(&_PyRuntime.gilstate.tstate_current), it doesn't use 
autoTSSkey. Or did I miss something?

Are you building Python with --with-experimental-isolated-subinterpreters?

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue43311>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to