https://github.com/python/cpython/commit/0e78a545e6e78b16eb7709ec3db2243364603134
commit: 0e78a545e6e78b16eb7709ec3db2243364603134
branch: main
author: Sam Gross <[email protected]>
committer: colesbury <[email protected]>
date: 2024-05-03T18:13:40-04:00
summary:
gh-118534: Fix load of `gil->locked` (#118553)
files:
M Python/ceval_gil.c
diff --git a/Python/ceval_gil.c b/Python/ceval_gil.c
index e4f7217255efd8..b456a9d80455e4 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");
}
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]