We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e387b36 commit 58604ffCopy full SHA for 58604ff
include/swift/Runtime/Concurrent.h
@@ -517,7 +517,7 @@ template <class ElemTy> struct ConcurrentReadableArray {
517
auto *newStorage = Storage::allocate(newCapacity);
518
if (storage) {
519
std::copy(storage->data(), storage->data() + count, newStorage->data());
520
- newStorage->Count.store(count, std::memory_order_relaxed);
+ newStorage->Count.store(count, std::memory_order_release);
521
FreeList.push_back(storage);
522
}
523
0 commit comments