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.
2 parents c059fc2 + 58604ff commit 0ade99fCopy full SHA for 0ade99f
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