]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-131121: Fix `_Py_atomic_store_char_relaxed` memory order (gh-131122)
authorSam Gross <colesbury@gmail.com>
Wed, 12 Mar 2025 13:03:04 +0000 (09:03 -0400)
committerGitHub <noreply@github.com>
Wed, 12 Mar 2025 13:03:04 +0000 (09:03 -0400)
Include/cpython/pyatomic_gcc.h

index b179e4c9a185a9d45bccd1d208ef2b53a49adfe0..1566b83b9f6a1b6e33ffe80803a36a63aa0f869d 100644 (file)
@@ -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)