gh-118534: Fix load of gil->locked (#118553)
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user