From 01f131e7b8deb0035ca812486f007bf3fca36412 Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Fri, 16 Aug 2024 14:50:43 -0400 Subject: [PATCH] restore behaviour of PyThreadState_Swap in #104208 it was inadvertently (?) changed to acquire the GIL --- Python/pystate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/pystate.c b/Python/pystate.c index 1337516aa59cbc..4aea1e48b1d224 100644 --- a/Python/pystate.c +++ b/Python/pystate.c @@ -1914,7 +1914,7 @@ _PyThreadState_Swap(_PyRuntimeState *runtime, PyThreadState *newts) PyThreadState * PyThreadState_Swap(PyThreadState *newts) { - return _PyThreadState_Swap(&_PyRuntime, newts); + return _PyThreadState_SwapNoGIL(newts); }