]> granicus.if.org Git - gc/commitdiff
Really use AO_load/store in realloc, clear_hdr_marks and reclaim_generic
authorIvan Maidanski <ivmai@mail.ru>
Wed, 7 Mar 2018 18:34:28 +0000 (21:34 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 7 Mar 2018 18:34:28 +0000 (21:34 +0300)
(fix of commit bc7d075)

* include/private/gc_atomic_ops.h [GC_BUILTIN_ATOMIC] (AO_HAVE_load,
AO_HAVE_store, AO_HAVE_store_release_write): Define macro.

include/private/gc_atomic_ops.h

index 9b585ec5a549d210f0fbe890d250d30bb2688508..28dce954486063e164b8d88cae6112a99d0a8b2d 100644 (file)
 # define AO_HAVE_or
 
 # define AO_load(p) __atomic_load_n(p, __ATOMIC_RELAXED)
+# define AO_HAVE_load
 # define AO_load_acquire(p) __atomic_load_n(p, __ATOMIC_ACQUIRE)
 # define AO_HAVE_load_acquire
 # define AO_load_acquire_read(p) AO_load_acquire(p)
 # define AO_HAVE_load_acquire_read
 
 # define AO_store(p, v) __atomic_store_n(p, v, __ATOMIC_RELAXED)
+# define AO_HAVE_store
 # define AO_store_release(p, v) __atomic_store_n(p, v, __ATOMIC_RELEASE)
 # define AO_HAVE_store_release
 # define AO_store_release_write(p, v) AO_store_release(p, v)
+# define AO_HAVE_store_release_write
 
 # ifdef AO_REQUIRE_CAS
     AO_INLINE int