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 f019bd6 commit 6869bfeCopy full SHA for 6869bfe
Python/pystate.c
@@ -308,12 +308,9 @@ unbind_gilstate_tstate(PyThreadState *tstate)
308
assert(tstate_is_bound(tstate));
309
// XXX assert(!tstate->_status.active);
310
assert(tstate->_status.bound_gilstate);
311
- // XXX assert(tstate == gilstate_tss_get(tstate->interp->runtime));
+ assert(tstate == gilstate_tss_get(tstate->interp->runtime));
312
313
- // XXX This check *should* always succeed.
314
- if (tstate == gilstate_tss_get(tstate->interp->runtime)) {
315
- gilstate_tss_clear(tstate->interp->runtime);
316
- }
+ gilstate_tss_clear(tstate->interp->runtime);
317
tstate->_status.bound_gilstate = 0;
318
}
319
0 commit comments