aboutsummaryrefslogtreecommitdiffstats
path: root/util/memory
diff options
context:
space:
mode:
authorAndrey Fomichev <andrey.fomichev@gmail.com>2022-02-10 16:49:12 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:12 +0300
commite542cc14db4240643a06bb0dde87ecf361f101ab (patch)
tree3b03a4b94acd11a4eca042532035806e5fa08ad1 /util/memory
parente2ac73225f30f7fcf7df3cb225cba257f56144c1 (diff)
downloadydb-e542cc14db4240643a06bb0dde87ecf361f101ab.tar.gz
Restoring authorship annotation for Andrey Fomichev <andrey.fomichev@gmail.com>. Commit 1 of 2.
Diffstat (limited to 'util/memory')
-rw-r--r--util/memory/pool.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/util/memory/pool.h b/util/memory/pool.h
index 13c8b6b9ed..08e724e68e 100644
--- a/util/memory/pool.h
+++ b/util/memory/pool.h
@@ -75,7 +75,7 @@ private:
inline const char* Data() const noexcept {
return (const char*)(this + 1);
}
-
+
inline char* Data() noexcept {
return (char*)(this + 1);
}
@@ -83,7 +83,7 @@ private:
inline size_t DataSize() const noexcept {
return Cur_ - Data();
}
-
+
inline void ResetChunk() noexcept {
size_t total = DataSize() + Left();
Cur_ = Data();
@@ -94,7 +94,7 @@ private:
char* Cur_;
size_t Left_;
};
-
+
using TChunkList = TIntrusiveList<TChunk>;
public:
@@ -256,9 +256,9 @@ public:
inline void Traverse(TOp& op) const noexcept {
for (TChunkList::TConstIterator i = Chunks_.Begin(); i != Chunks_.End(); ++i) {
op(i->Data(), i->DataSize());
- }
+ }
}
-
+
inline IAllocator* RealAllocator() const noexcept {
return Alloc_;
}