This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients JunyiXie, vstinner
Date 2021-03-09.21:13:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1615324425.38.0.437567425581.issue43311@roundup.psfhosted.org>
In-reply-to
Content
> 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?
History
Date User Action Args
2021-03-09 21:13:45vstinnersetrecipients: + vstinner, JunyiXie
2021-03-09 21:13:45vstinnersetmessageid: <1615324425.38.0.437567425581.issue43311@roundup.psfhosted.org>
2021-03-09 21:13:45vstinnerlinkissue43311 messages
2021-03-09 21:13:45vstinnercreate