Skip to content

Commit 0e78a54

Browse files
authored
gh-118534: Fix load of gil->locked (#118553)
1 parent 6d9e8e9 commit 0e78a54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: Python/ceval_gil.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ drop_gil(PyInterpreterState *interp, PyThreadState *tstate)
224224
return;
225225
}
226226
#endif
227-
if (!_Py_atomic_load_ptr_relaxed(&gil->locked)) {
227+
if (!_Py_atomic_load_int_relaxed(&gil->locked)) {
228228
Py_FatalError("drop_gil: GIL is not locked");
229229
}
230230

0 commit comments

Comments
 (0)