https://github.com/python/cpython/commit/7ffe93faf1db3b90968af1b1d811f39529603780
commit: 7ffe93faf1db3b90968af1b1d811f39529603780
branch: main
author: Sam Gross <[email protected]>
committer: colesbury <[email protected]>
date: 2025-03-12T09:03:04-04:00
summary:
gh-131121: Fix `_Py_atomic_store_char_relaxed` memory order (gh-131122)
files:
M Include/cpython/pyatomic_gcc.h
diff --git a/Include/cpython/pyatomic_gcc.h b/Include/cpython/pyatomic_gcc.h
index b179e4c9a185a9..1566b83b9f6a1b 100644
--- a/Include/cpython/pyatomic_gcc.h
+++ b/Include/cpython/pyatomic_gcc.h
@@ -519,7 +519,7 @@ _Py_atomic_store_ullong_relaxed(unsigned long long *obj,
static inline void
_Py_atomic_store_char_relaxed(char *obj, char value)
-{ __atomic_store_n(obj, value, __ATOMIC_RELEASE); }
+{ __atomic_store_n(obj, value, __ATOMIC_RELAXED); }
static inline void
_Py_atomic_store_uchar_relaxed(unsigned char *obj, unsigned char value)
_______________________________________________
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]