From 19b98348ffc660501e518bf48cd63d232f7585e7 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 1 Aug 2018 13:59:59 -0700 Subject: [PATCH] [atomic] Use read-barrier for get() --- src/hb-atomic-private.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-atomic-private.hh b/src/hb-atomic-private.hh index 3c321020a..bd28a5635 100644 --- a/src/hb-atomic-private.hh +++ b/src/hb-atomic-private.hh @@ -223,7 +223,7 @@ typedef int hb_atomic_int_impl_t; #define hb_atomic_int_impl_get_relaxed(AI) (*(AI)) #endif #ifndef hb_atomic_ptr_impl_get -inline void *hb_atomic_ptr_impl_get (void **P) { void *v = *P; _hb_memory_barrier (); return v; } +inline void *hb_atomic_ptr_impl_get (void **P) { void *v = *P; _hb_memory_r_barrier (); return v; } #endif