8000 Add some TODO comments. · python/cpython@c35aee5 · GitHub
[go: up one dir, main page]

Skip to content

Commit c35aee5

Browse files
Add some TODO comments.
1 parent a1e051a commit c35aee5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Python/pystate.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1111,11 +1111,14 @@ tstate_delete_common(PyThreadState *tstate,
11111111
}
11121112
HEAD_UNLOCK(runtime);
11131113

1114+
// XXX Do this in PyThreadState_Swap() (and assert not-equal here)?
11141115
if (gilstate->autoInterpreterState &&
11151116
PyThread_tss_get(&gilstate->autoTSSkey) == tstate)
11161117
{
11171118
PyThread_tss_set(&gilstate->autoTSSkey, NULL);
11181119
}
1120+
1121+
// XXX Move to PyThreadState_Clear()?
11191122
_PyStackChunk *chunk = tstate->datastack_chunk;
11201123
tstate->datastack_chunk = NULL;
11211124
while (chunk != NULL) {

0 commit comments

Comments
 (0)
0