We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69c5038 commit dc1b6d5Copy full SHA for dc1b6d5
Modules/_abc.c
@@ -74,7 +74,7 @@ static inline uint64_t
74
get_cache_version(_abc_data *impl)
75
{
76
#ifdef Py_GIL_DISABLED
77
- return _Py_atomic_load_uint64(&impl->_abc_negative_cache_version);
+ return _Py_atomic_load_uint64_relaxed(&impl->_abc_negative_cache_version);
78
#else
79
return impl->_abc_negative_cache_version;
80
#endif
@@ -84,7 +84,7 @@ static inline void
84
set_cache_version(_abc_data *impl, uint64_t version)
85
86
87
- _Py_atomic_store_uint64(&impl->_abc_negative_cache_version, version);
+ _Py_atomic_store_uint64_relaxed(&impl->_abc_negative_cache_version, version);
88
89
impl->_abc_negative_cache_version = version;
90
0 commit comments