We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5be78e9 commit f019bd6Copy full SHA for f019bd6
Python/pystate.c
@@ -290,8 +290,11 @@ bind_gilstate_tstate(PyThreadState *tstate)
290
assert(tstate != tcur);
291
292
if (tcur != NULL) {
293
+ // The original gilstate implementation only respects the
294
+ // first thread state set.
295
// XXX Skipping like this does not play nice with multiple interpreters.
296
return;
297
+ tcur->_status.bound_gilstate = 0;
298
}
299
gilstate_tss_set(runtime, tstate);
300
tstate->_status.bound_gilstate = 1;
0 commit comments