diff options
author | babenko <babenko@yandex-team.com> | 2024-10-10 10:24:07 +0300 |
---|---|---|
committer | babenko <babenko@yandex-team.com> | 2024-10-10 10:39:13 +0300 |
commit | 2d78fdbaebf316aaddd8674538b6d2fcd9e095d7 (patch) | |
tree | d72135c03f3bf27c9fe7664787710a72bd3ea77e | |
parent | 64ced6422a2063c32dd0b137118dd0d9a7fdf5ef (diff) | |
download | ydb-2d78fdbaebf316aaddd8674538b6d2fcd9e095d7.tar.gz |
YT-23050: Hazard pointers must not depend on logging
commit_hash:6682ef6bfee76fd4751556ddd50fb3df4d771130
-rw-r--r-- | yt/yt/core/misc/hazard_ptr.cpp | 16 | ||||
-rw-r--r-- | yt/yt/core/misc/hazard_ptr.h | 2 |
2 files changed, 0 insertions, 18 deletions
diff --git a/yt/yt/core/misc/hazard_ptr.cpp b/yt/yt/core/misc/hazard_ptr.cpp index ce78cbccf2..ec288eddd9 100644 --- a/yt/yt/core/misc/hazard_ptr.cpp +++ b/yt/yt/core/misc/hazard_ptr.cpp @@ -1,7 +1,5 @@ #include "hazard_ptr.h" -#include "private.h" - #include <yt/yt/core/misc/singleton.h> #include <yt/yt/core/misc/proc.h> #include <yt/yt/core/misc/ring_queue.h> @@ -25,10 +23,6 @@ using namespace NConcurrency; //////////////////////////////////////////////////////////////////////////////// -static constexpr auto& Logger = LockFreeLogger; - -//////////////////////////////////////////////////////////////////////////////// - namespace NDetail { //////////////////////////////////////////////////////////////////////////////// @@ -325,16 +319,6 @@ bool THazardPointerManager::DoReclaimHazardPointers(THazardThreadState* threadSt retireList.push(item); }); - YT_LOG_TRACE_IF( - !protectedPointers.empty(), - "Scanning hazard pointers (Candidates: %v, Protected: %v)", - MakeFormattableView(TRingQueueIterableWrapper(retireList), [&] (auto* builder, auto item) { - builder->AppendFormat("%v", TTaggedPtr<void>::Unpack(item.PackedPtr).Ptr); - }), - MakeFormattableView(protectedPointers, [&] (auto* builder, auto ptr) { - builder->AppendFormat("%v", ptr); - })); - size_t pushedCount = 0; auto popCount = retireList.size(); while (popCount-- > 0) { diff --git a/yt/yt/core/misc/hazard_ptr.h b/yt/yt/core/misc/hazard_ptr.h index f6a3bf58ca..40202bbf44 100644 --- a/yt/yt/core/misc/hazard_ptr.h +++ b/yt/yt/core/misc/hazard_ptr.h @@ -4,8 +4,6 @@ #include <yt/yt/core/concurrency/scheduler_api.h> -#include <library/cpp/yt/logging/logger.h> - #include <atomic> namespace NYT { |