diff options
author | agorodilov <agorodilov@yandex-team.ru> | 2022-02-10 16:47:09 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:09 +0300 |
commit | 7a4979e6211c3e78c7f9041d4a9e5d3405343c36 (patch) | |
tree | 9e9943579e5a14679af7cd2cda3c36d8c0b775d3 /util/memory | |
parent | 676340c42e269f3070f194d160f42a83a10568d4 (diff) | |
download | ydb-7a4979e6211c3e78c7f9041d4a9e5d3405343c36.tar.gz |
Restoring authorship annotation for <agorodilov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/memory')
-rw-r--r-- | util/memory/addstorage.h | 4 | ||||
-rw-r--r-- | util/memory/alloc.h | 6 | ||||
-rw-r--r-- | util/memory/blob.cpp | 8 | ||||
-rw-r--r-- | util/memory/blob.h | 6 | ||||
-rw-r--r-- | util/memory/mmapalloc.cpp | 4 | ||||
-rw-r--r-- | util/memory/pool.h | 6 | ||||
-rw-r--r-- | util/memory/pool_ut.cpp | 4 | ||||
-rw-r--r-- | util/memory/segpool_alloc.h | 4 | ||||
-rw-r--r-- | util/memory/tempbuf.cpp | 10 | ||||
-rw-r--r-- | util/memory/tempbuf.h | 2 |
10 files changed, 27 insertions, 27 deletions
diff --git a/util/memory/addstorage.h b/util/memory/addstorage.h index 597c73a988..ff5a3e14f5 100644 --- a/util/memory/addstorage.h +++ b/util/memory/addstorage.h @@ -27,9 +27,9 @@ class alignas(::NPrivate::TAdditionalStorageInfo) TAdditionalStorage { using TInfo = ::NPrivate::TAdditionalStorageInfo; public: - inline TAdditionalStorage() noexcept = default; + inline TAdditionalStorage() noexcept = default; - inline ~TAdditionalStorage() = default; + inline ~TAdditionalStorage() = default; inline void* operator new(size_t len1, size_t len2) { static_assert(alignof(T) >= alignof(TInfo)); diff --git a/util/memory/alloc.h b/util/memory/alloc.h index d59575aef5..0edf818fd2 100644 --- a/util/memory/alloc.h +++ b/util/memory/alloc.h @@ -12,7 +12,7 @@ public: size_t Len; }; - virtual ~IAllocator() = default; + virtual ~IAllocator() = default; virtual TBlock Allocate(size_t len) = 0; virtual void Release(const TBlock& block) = 0; @@ -20,8 +20,8 @@ public: class TDefaultAllocator: public IAllocator { public: - TBlock Allocate(size_t len) override; - void Release(const TBlock& block) override; + TBlock Allocate(size_t len) override; + void Release(const TBlock& block) override; static IAllocator* Instance() noexcept; }; diff --git a/util/memory/blob.cpp b/util/memory/blob.cpp index 91da5cadca..4262188c40 100644 --- a/util/memory/blob.cpp +++ b/util/memory/blob.cpp @@ -19,9 +19,9 @@ class TDynamicBlobBase: public TBlob::TBase, using TRefBase = TRefCounted<TDynamicBlobBase, TCounter>; public: - inline TDynamicBlobBase() = default; + inline TDynamicBlobBase() = default; - ~TDynamicBlobBase() override = default; + ~TDynamicBlobBase() override = default; void Ref() noexcept override { TRefBase::Ref(); @@ -49,7 +49,7 @@ public: Buf_.Swap(buf); } - ~TBufferBlobBase() override = default; + ~TBufferBlobBase() override = default; void Ref() noexcept override { TRefBase::Ref(); @@ -82,7 +82,7 @@ public: { } - ~TStringBlobBase() override = default; + ~TStringBlobBase() override = default; void Ref() noexcept override { TRefBase::Ref(); diff --git a/util/memory/blob.h b/util/memory/blob.h index 20c02a68df..148f05afd9 100644 --- a/util/memory/blob.h +++ b/util/memory/blob.h @@ -25,8 +25,8 @@ class TBlob { public: class TBase { public: - inline TBase() noexcept = default; - virtual ~TBase() = default; + inline TBase() noexcept = default; + virtual ~TBase() = default; virtual void Ref() noexcept = 0; virtual void UnRef() noexcept = 0; @@ -45,7 +45,7 @@ private: { } - inline ~TStorage() = default; + inline ~TStorage() = default; inline void Swap(TStorage& r) noexcept { DoSwap(Data, r.Data); diff --git a/util/memory/mmapalloc.cpp b/util/memory/mmapalloc.cpp index ec618cc808..52a99db308 100644 --- a/util/memory/mmapalloc.cpp +++ b/util/memory/mmapalloc.cpp @@ -7,7 +7,7 @@ namespace { class TMmapAllocator: public IAllocator { public: - TBlock Allocate(size_t len) override { + TBlock Allocate(size_t len) override { TMappedAllocation m(len + sizeof(TMappedAllocation)); TMappedAllocation* real = (TMappedAllocation*)m.Data(); @@ -18,7 +18,7 @@ namespace { return ret; } - void Release(const TBlock& block) override { + void Release(const TBlock& block) override { TMappedAllocation tmp(0); TMappedAllocation* real = ((TMappedAllocation*)block.Data) - 1; diff --git a/util/memory/pool.h b/util/memory/pool.h index 13c8b6b9ed..1e86b79c0f 100644 --- a/util/memory/pool.h +++ b/util/memory/pool.h @@ -100,7 +100,7 @@ private: public: class IGrowPolicy { public: - virtual ~IGrowPolicy() = default; + virtual ~IGrowPolicy() = default; virtual size_t Next(size_t prev) const noexcept = 0; }; @@ -336,13 +336,13 @@ public: { } - TBlock Allocate(size_t len) override { + TBlock Allocate(size_t len) override { TBlock ret = {Pool_->Allocate(len), len}; return ret; } - void Release(const TBlock& block) override { + void Release(const TBlock& block) override { (void)block; } diff --git a/util/memory/pool_ut.cpp b/util/memory/pool_ut.cpp index 1158a8ca42..bbfdfd08f3 100644 --- a/util/memory/pool_ut.cpp +++ b/util/memory/pool_ut.cpp @@ -14,7 +14,7 @@ public: { } - TBlock Allocate(size_t len) override { + TBlock Allocate(size_t len) override { Check(); Alloced_ += len; @@ -23,7 +23,7 @@ public: return TDefaultAllocator::Allocate(len); } - void Release(const TBlock& block) override { + void Release(const TBlock& block) override { Released_ += block.Len; ++Frees_; diff --git a/util/memory/segpool_alloc.h b/util/memory/segpool_alloc.h index 1a83b7a543..d3838c28db 100644 --- a/util/memory/segpool_alloc.h +++ b/util/memory/segpool_alloc.h @@ -43,7 +43,7 @@ struct segpool_alloc { ui64 pool_count, malloc_count, pool_free_count, malloc_free_count; #endif segpool_alloc() - : pool(nullptr) + : pool(nullptr) { Y_IF_DEBUG(pool_count = malloc_count = pool_free_count = malloc_free_count = 0); } @@ -69,7 +69,7 @@ struct segpool_alloc { Y_IF_DEBUG(if (data) malloc_count++); return data; } - _Tp* data = (_Tp*)pool->append(nullptr, __n * sizeof(_Tp)); + _Tp* data = (_Tp*)pool->append(nullptr, __n * sizeof(_Tp)); Y_IF_DEBUG(pool_count++); return data; } diff --git a/util/memory/tempbuf.cpp b/util/memory/tempbuf.cpp index 09a2d0f140..fd288d41c3 100644 --- a/util/memory/tempbuf.cpp +++ b/util/memory/tempbuf.cpp @@ -27,7 +27,7 @@ public: * We do not really need 'virtual' here * but for compiler happiness... */ - virtual ~TImpl() = default; + virtual ~TImpl() = default; inline void* Data() noexcept { return Data_; @@ -87,7 +87,7 @@ namespace { { } - inline ~TAllocedBuf() override = default; + inline ~TAllocedBuf() override = default; private: void Dispose() noexcept override { @@ -105,7 +105,7 @@ namespace { { } - inline ~TPerThreadedBuf() override = default; + inline ~TPerThreadedBuf() override = default; private: void Dispose() noexcept override; @@ -194,14 +194,14 @@ TTempBuf::TTempBuf(size_t len) { } -TTempBuf::TTempBuf(const TTempBuf&) noexcept = default; +TTempBuf::TTempBuf(const TTempBuf&) noexcept = default; TTempBuf::TTempBuf(TTempBuf&& b) noexcept : Impl_(std::move(b.Impl_)) { } -TTempBuf::~TTempBuf() = default; +TTempBuf::~TTempBuf() = default; TTempBuf& TTempBuf::operator=(const TTempBuf& b) noexcept { if (this != &b) { diff --git a/util/memory/tempbuf.h b/util/memory/tempbuf.h index 334670eb1e..536bb8b0e0 100644 --- a/util/memory/tempbuf.h +++ b/util/memory/tempbuf.h @@ -67,7 +67,7 @@ private: } public: - TTempArray() = default; + TTempArray() = default; TTempArray(size_t len) : TTempBuf(RawSize(len)) |