From d1d15c03e22bd69a6321984bf893a171b19a964c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Sur=C3=BD?= Date: Fri, 17 Aug 2018 15:57:55 +0200 Subject: [PATCH] Switch everything back to relaxed memory ordering --- lib/isc/include/isc/refcount.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/isc/include/isc/refcount.h b/lib/isc/include/isc/refcount.h index 09a87d7ea4..b00ff8a666 100644 --- a/lib/isc/include/isc/refcount.h +++ b/lib/isc/include/isc/refcount.h @@ -95,7 +95,7 @@ typedef atomic_uint_fast32_t isc_refcount_t; atomic_init(target, value) #define isc_refcount_current(target) \ - atomic_load_explicit(target, memory_order_acquire) + atomic_load_explicit(target, memory_order_relaxed) #define isc_refcount_destroy(target) \ ISC_REQUIRE(isc_refcount_current(target) == 0) @@ -107,6 +107,6 @@ typedef atomic_uint_fast32_t isc_refcount_t; atomic_fetch_add_explicit(target, 1, memory_order_relaxed) #define isc_refcount_decrement(target) \ - atomic_fetch_sub_explicit(target, 1, memory_order_release) + atomic_fetch_sub_explicit(target, 1, memory_order_relaxed) ISC_LANG_ENDDECLS