Skip to content

Commit dc1b6d5

Browse files
committed
gh-92810: Fixes after review
1 parent 69c5038 commit dc1b6d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/_abc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ static inline uint64_t
7474
get_cache_version(_abc_data *impl)
7575
{
7676
#ifdef Py_GIL_DISABLED
77-
return _Py_atomic_load_uint64(&impl->_abc_negative_cache_version);
77+
return _Py_atomic_load_uint64_relaxed(&impl->_abc_negative_cache_version);
7878
#else
7979
return impl->_abc_negative_cache_version;
8080
#endif
@@ -84,7 +84,7 @@ static inline void
8484
set_cache_version(_abc_data *impl, uint64_t version)
8585
{
8686
#ifdef Py_GIL_DISABLED
87-
_Py_atomic_store_uint64(&impl->_abc_negative_cache_version, version);
87+
_Py_atomic_store_uint64_relaxed(&impl->_abc_negative_cache_version, version);
8888
#else
8989
impl->_abc_negative_cache_version = version;
9090
#endif

0 commit comments

Comments
 (0)