File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -684,7 +684,7 @@ template <class ElemTy> struct ConcurrentReadableHashMap {
684
684
// / Free all the arrays in the free lists if there are no active readers. If
685
685
// / there are active readers, do nothing.
686
686
void deallocateFreeListIfSafe () {
687
- if (ReaderCount.load (std::memory_order_relaxed ) == 0 )
687
+ if (ReaderCount.load (std::memory_order_acquire ) == 0 )
688
688
deallocateFreeList ();
689
689
}
690
690
@@ -857,7 +857,7 @@ template <class ElemTy> struct ConcurrentReadableHashMap {
857
857
ElemTy *elements2;
858
858
do {
859
859
elements = Elements.load (std::memory_order_acquire);
860
- indices = Indices.load (SWIFT_MEMORY_ORDER_CONSUME );
860
+ indices = Indices.load (std::memory_order_acquire );
861
861
elementCount = ElementCount.load (std::memory_order_acquire);
862
862
elements2 = Elements.load (std::memory_order_acquire);
863
863
} while (elements != elements2);
You can’t perform that action at this time.
0 commit comments