aboutsummaryrefslogtreecommitdiffstats
path: root/util/memory/pool.h
diff options
context:
space:
mode:
authoromakovski <omakovski@yandex-team.ru>2022-02-10 16:49:30 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:30 +0300
commit9d2a99f5085a7425ef22831762c8684b687e0500 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /util/memory/pool.h
parent5feb3b4d96aaa42ce546426241c48d626e6d6685 (diff)
downloadydb-9d2a99f5085a7425ef22831762c8684b687e0500.tar.gz
Restoring authorship annotation for <omakovski@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/memory/pool.h')
-rw-r--r--util/memory/pool.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/util/memory/pool.h b/util/memory/pool.h
index 8f04e66969..13c8b6b9ed 100644
--- a/util/memory/pool.h
+++ b/util/memory/pool.h
@@ -123,20 +123,20 @@ public:
static IGrowPolicy* Instance() noexcept;
};
- struct TOptions {
- bool RoundUpToNextPowerOfTwo;
- TOptions()
- : RoundUpToNextPowerOfTwo(true)
- {
- }
- };
-
- inline TMemoryPool(size_t initial, IGrowPolicy* grow = TExpGrow::Instance(), IAllocator* alloc = TDefaultAllocator::Instance(), const TOptions& options = TOptions())
+ struct TOptions {
+ bool RoundUpToNextPowerOfTwo;
+ TOptions()
+ : RoundUpToNextPowerOfTwo(true)
+ {
+ }
+ };
+
+ inline TMemoryPool(size_t initial, IGrowPolicy* grow = TExpGrow::Instance(), IAllocator* alloc = TDefaultAllocator::Instance(), const TOptions& options = TOptions())
: Current_(&Empty_)
, BlockSize_(initial)
, GrowPolicy_(grow)
, Alloc_(alloc)
- , Options_(options)
+ , Options_(options)
, Origin_(initial)
, MemoryAllocatedBeforeCurrent_(0)
, MemoryWasteBeforeCurrent_(0)
@@ -299,7 +299,7 @@ private:
size_t BlockSize_;
IGrowPolicy* GrowPolicy_;
IAllocator* Alloc_;
- TOptions Options_;
+ TOptions Options_;
TChunkList Chunks_;
const size_t Origin_;
size_t MemoryAllocatedBeforeCurrent_;