From 927575dc86c5361e342c95676c4002ac4199f349 Mon Sep 17 00:00:00 2001 From: Matthew Parkinson Date: Fri, 17 Dec 2021 12:41:27 +0000 Subject: [PATCH] Increase barrier strength on ABA. --- src/ds/aba.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ds/aba.h b/src/ds/aba.h index e57c574..64b0f99 100644 --- a/src/ds/aba.h +++ b/src/ds/aba.h @@ -112,7 +112,7 @@ namespace snmalloc std::atomic& addr = parent->linked; auto result = addr.compare_exchange_weak( - old, xchg, std::memory_order_relaxed, std::memory_order_relaxed); + old, xchg, std::memory_order_acq_rel, std::memory_order_relaxed); # endif return result; }