Skip to content

Commit b3cac6d

Browse files
improve comment
1 parent 9ade043 commit b3cac6d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Python/pystate.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -759,6 +759,7 @@ interpreter_clear(PyInterpreterState *interp, PyThreadState *tstate)
759759
PyThreadState *p = interp->threads.head;
760760
HEAD_UNLOCK(runtime);
761761
while (p != NULL) {
762+
// See https://github.com/python/cpython/issues/102126
762763
// Must be called without HEAD_LOCK held as it can deadlock
763764
// if any finalizer tries to acquire that lock.
764765
PyThreadState_Clear(p);

0 commit comments

Comments
 (0)