summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorSam Gross <colesbury@gmail.com>2024-05-03 22:13:40 (GMT)
committerGitHub <noreply@github.com>2024-05-03 22:13:40 (GMT)
commit0e78a545e6e78b16eb7709ec3db2243364603134 (patch)
tree1916b9ecccf4109ace9870caaee3e83c214f5a58 /Python
parent6d9e8e989e9e0931f84155451f921621b906e213 (diff)
downloadcpython-0e78a545e6e78b16eb7709ec3db2243364603134.zip
cpython-0e78a545e6e78b16eb7709ec3db2243364603134.tar.gz
cpython-0e78a545e6e78b16eb7709ec3db2243364603134.tar.bz2
gh-118534: Fix load of `gil->locked` (#118553)
Diffstat (limited to 'Python')
-rw-r--r--Python/ceval_gil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ceval_gil.c b/Python/ceval_gil.c
index e4f7217..b456a9d 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");
}