diff options
author | omakovski <omakovski@yandex-team.ru> | 2022-02-10 16:49:30 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:30 +0300 |
commit | 9d2a99f5085a7425ef22831762c8684b687e0500 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /util/memory/pool.cpp | |
parent | 5feb3b4d96aaa42ce546426241c48d626e6d6685 (diff) | |
download | ydb-9d2a99f5085a7425ef22831762c8684b687e0500.tar.gz |
Restoring authorship annotation for <omakovski@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/memory/pool.cpp')
-rw-r--r-- | util/memory/pool.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/util/memory/pool.cpp b/util/memory/pool.cpp index 58cbd22ed1..9a011f0e4f 100644 --- a/util/memory/pool.cpp +++ b/util/memory/pool.cpp @@ -11,11 +11,11 @@ TMemoryPool::IGrowPolicy* TMemoryPool::TExpGrow::Instance() noexcept { void TMemoryPool::AddChunk(size_t hint) { const size_t dataLen = Max(BlockSize_, hint); - size_t allocSize = dataLen + sizeof(TChunk); - if (Options_.RoundUpToNextPowerOfTwo) { - allocSize = FastClp2(allocSize); - } - TBlock nb = Alloc_->Allocate(allocSize); + size_t allocSize = dataLen + sizeof(TChunk); + if (Options_.RoundUpToNextPowerOfTwo) { + allocSize = FastClp2(allocSize); + } + TBlock nb = Alloc_->Allocate(allocSize); // Add previous chunk's stats if (Current_ != &Empty_) { |