Skip to content

Commit 7a1a889

Browse files
committed
Add HEAD_UNLOCK
1 parent 3c208c2 commit 7a1a889

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
@@ -796,6 +796,7 @@ interpreter_clear(PyInterpreterState *interp, PyThreadState *tstate)
796796
// See https://github.com/python/cpython/issues/102126
797797
// Must be called without HEAD_LOCK held as it can deadlock
798798
// if any finalizer tries to acquire that lock.
799+
HEAD_UNLOCK(&_PyRuntime);
799800
PyThreadState_Clear(p);
800801
p = p->next;
801802
}

0 commit comments

Comments
 (0)