aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/yt/memory/ref.cpp
diff options
context:
space:
mode:
authorsavrus <savrus@yandex-team.com>2022-09-19 22:36:24 +0300
committersavrus <savrus@yandex-team.com>2022-09-19 22:36:24 +0300
commitc62e39eff60f637bfe4eeae1984034d010cc3e80 (patch)
tree03495974687e9d403be629256547f347665f06ff /library/cpp/yt/memory/ref.cpp
parentaecd1bb1e7a5e9fe53d3828747a6cbc36f9f4e41 (diff)
downloadydb-c62e39eff60f637bfe4eeae1984034d010cc3e80.tar.gz
Introduce shared range holders
Diffstat (limited to 'library/cpp/yt/memory/ref.cpp')
-rw-r--r--library/cpp/yt/memory/ref.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/library/cpp/yt/memory/ref.cpp b/library/cpp/yt/memory/ref.cpp
index 257a8c9050..363254653b 100644
--- a/library/cpp/yt/memory/ref.cpp
+++ b/library/cpp/yt/memory/ref.cpp
@@ -22,7 +22,7 @@ char MutableEmptyRefData[1] = {0};
////////////////////////////////////////////////////////////////////////////////
class TBlobHolder
- : public TRefCounted
+ : public ISharedRangeHolder
{
public:
explicit TBlobHolder(TBlob&& blob)
@@ -36,7 +36,7 @@ private:
////////////////////////////////////////////////////////////////////////////////
class TStringHolder
- : public TRefCounted
+ : public ISharedRangeHolder
{
public:
TStringHolder(TString&& string, TRefCountedTypeCookie cookie)
@@ -74,7 +74,7 @@ private:
template <class TDerived>
class TAllocationHolderBase
- : public TRefCounted
+ : public ISharedRangeHolder
{
public:
~TAllocationHolderBase()
@@ -359,7 +359,7 @@ TMutableRef TSharedRefArrayBuilder::AllocateAndAdd(size_t size)
YT_ASSERT(CurrentAllocationPtr_ + size <= Impl_->GetBeginAllocationPtr() + AllocationCapacity_);
TMutableRef ref(CurrentAllocationPtr_, size);
CurrentAllocationPtr_ += size;
- TRefCountedPtr holder(Impl_.Get(), false);
+ ISharedRangeHolderPtr holder(Impl_.Get(), false);
TSharedRef sharedRef(ref, std::move(holder));
Add(std::move(sharedRef));
return ref;