From: Sam Gross Date: Fri, 3 May 2024 22:13:40 +0000 (-0400) Subject: gh-118534: Fix load of `gil->locked` (#118553) X-Git-Tag: v3.13.0b1~124 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0e78a545e6e78b16eb7709ec3db2243364603134;p=thirdparty%2FPython%2Fcpython.git gh-118534: Fix load of `gil->locked` (#118553) --- diff --git a/Python/ceval_gil.c b/Python/ceval_gil.c index e4f7217255ef..b456a9d80455 100644 --- a/Python/ceval_gil.c +++ b/Python/ceval_gil.c @@ -224,7 +224,7 @@ drop_gil(PyInterpreterState *interp, PyThreadState *tstate) return; } #endif - if (!_Py_atomic_load_ptr_relaxed(&gil->locked)) { + if (!_Py_atomic_load_int_relaxed(&gil->locked)) { Py_FatalError("drop_gil: GIL is not locked"); }