Skip to content

Commit 01f131e

Browse files
committed
restore behaviour of PyThreadState_Swap
in python#104208 it was inadvertently (?) changed to acquire the GIL
1 parent b01caf1 commit 01f131e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/pystate.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1914,7 +1914,7 @@ _PyThreadState_Swap(_PyRuntimeState *runtime, PyThreadState *newts)
19141914
PyThreadState *
19151915
PyThreadState_Swap(PyThreadState *newts)
19161916
{
1917-
return _PyThreadState_Swap(&_PyRuntime, newts);
1917+
return _PyThreadState_SwapNoGIL(newts);
19181918
}
19191919

19201920

0 commit comments

Comments
 (0)