8000
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 a1e051a commit c35aee5Copy full SHA for c35aee5
Python/pystate.c
@@ -1111,11 +1111,14 @@ tstate_delete_common(PyThreadState *tstate,
1111
}
1112
HEAD_UNLOCK(runtime);
1113
1114
+ // XXX Do this in PyThreadState_Swap() (and assert not-equal here)?
1115
if (gilstate->autoInterpreterState &&
1116
PyThread_tss_get(&gilstate->autoTSSkey) == tstate)
1117
{
1118
PyThread_tss_set(&gilstate->autoTSSkey, NULL);
1119
1120
+
1121
+ // XXX Move to PyThreadState_Clear()?
1122
_PyStackChunk *chunk = tstate->datastack_chunk;
1123
tstate->datastack_chunk = NULL;
1124
while (chunk != NULL) {
0 commit comments