File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 26
26
#define ATOMIC_VALUE_EXCHANGE (var , val ) RUBY_ATOMIC_VALUE_EXCHANGE(var, val)
27
27
28
28
static inline rb_atomic_t
29
- rbimpl_atomic_load_relaxed (rb_atomic_t * ptr )
29
+ rbimpl_atomic_load_relaxed (volatile rb_atomic_t * ptr )
30
30
{
31
31
#if defined(HAVE_GCC_ATOMIC_BUILTINS )
32
32
return __atomic_load_n (ptr , __ATOMIC_RELAXED );
@@ -37,7 +37,7 @@ rbimpl_atomic_load_relaxed(rb_atomic_t *ptr)
37
37
#define ATOMIC_LOAD_RELAXED (var ) rbimpl_atomic_load_relaxed(&(var))
38
38
39
39
static inline uint64_t
40
- rbimpl_atomic_u64_load_relaxed (const uint64_t * value )
40
+ rbimpl_atomic_u64_load_relaxed (const volatile uint64_t * value )
41
41
{
42
42
#if defined(HAVE_GCC_ATOMIC_BUILTINS_64 )
43
43
return __atomic_load_n (value , __ATOMIC_RELAXED );
@@ -54,7 +54,7 @@ rbimpl_atomic_u64_load_relaxed(const uint64_t *value)
54
54
#define ATOMIC_U64_LOAD_RELAXED (var ) rbimpl_atomic_u64_load_relaxed(&(var))
55
55
56
56
static inline void
57
- rbimpl_atomic_u64_set_relaxed (uint64_t * address , uint64_t value )
57
+ rbimpl_atomic_u64_set_relaxed (volatile uint64_t * address , uint64_t value )
58
58
{
59
59
#if defined(HAVE_GCC_ATOMIC_BUILTINS_64 )
60
60
__atomic_store_n (address , value , __ATOMIC_RELAXED );
You can’t perform that action at this time.
0 commit comments