aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrobot-piglet <robot-piglet@yandex-team.com>2023-04-17 13:40:07 +0300
committerrobot-piglet <robot-piglet@yandex-team.com>2023-04-17 13:40:07 +0300
commit4b35d511b8c14af490de73859c8516a99be6a764 (patch)
treed598f73cb9251ffeb4bbf8f289a60e102e33bbd6
parentec7591c685a6d744b65bb2ff8fb9033919848de7 (diff)
downloadydb-4b35d511b8c14af490de73859c8516a99be6a764.tar.gz
Intermediate changes
-rw-r--r--library/cpp/yt/memory/free_list-inl.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/library/cpp/yt/memory/free_list-inl.h b/library/cpp/yt/memory/free_list-inl.h
index 45bb2b8f10..d64fad8896 100644
--- a/library/cpp/yt/memory/free_list-inl.h
+++ b/library/cpp/yt/memory/free_list-inl.h
@@ -128,13 +128,13 @@ bool TFreeList<TItem>::PutIf(TItem* head, TItem* tail, TPredicate predicate)
auto popCount = Head_.PopCount.load(std::memory_order::relaxed);
while (predicate(current)) {
- tail->Next.store(current, std::memory_order::release);
+ tail->Next.store(current);
if (NYT::NDetail::CompareAndSet(&AtomicHead_, current, popCount, head, popCount)) {
return true;
}
}
- tail->Next.store(nullptr, std::memory_order::release);
+ tail->Next.store(nullptr);
return false;
}
@@ -148,7 +148,7 @@ void TFreeList<TItem>::Put(TItem* head, TItem* tail)
auto popCount = Head_.PopCount.load(std::memory_order::relaxed);
do {
- tail->Next.store(current, std::memory_order::release);
+ tail->Next.store(current);
} while (!NYT::NDetail::CompareAndSet(&AtomicHead_, current, popCount, head, popCount));
}