aboutsummaryrefslogtreecommitdiffstats
path: root/util/memory/smallobj_ut.cpp
diff options
context:
space:
mode:
authoryazevnul <yazevnul@yandex-team.ru>2022-02-10 16:46:46 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:46 +0300
commit8cbc307de0221f84c80c42dcbe07d40727537e2c (patch)
tree625d5a673015d1df891e051033e9fcde5c7be4e5 /util/memory/smallobj_ut.cpp
parent30d1ef3941e0dc835be7609de5ebee66958f215a (diff)
downloadydb-8cbc307de0221f84c80c42dcbe07d40727537e2c.tar.gz
Restoring authorship annotation for <yazevnul@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/memory/smallobj_ut.cpp')
-rw-r--r--util/memory/smallobj_ut.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/util/memory/smallobj_ut.cpp b/util/memory/smallobj_ut.cpp
index 86003d1d53..8730e97e22 100644
--- a/util/memory/smallobj_ut.cpp
+++ b/util/memory/smallobj_ut.cpp
@@ -17,7 +17,7 @@ class TSmallObjAllocTest: public TTestBase {
}
};
- struct TClass64: public TObjectFromPool<TClass64> {
+ struct TClass64: public TObjectFromPool<TClass64> {
alignas(64) ui64 Data = 0;
};
@@ -30,10 +30,10 @@ class TSmallObjAllocTest: public TTestBase {
private:
void TestAlign() {
TClass64::TPool pool(TDefaultAllocator::Instance());
- TClass64* f1 = new (&pool) TClass64;
- TClass64* f2 = new (&pool) TClass64;
- TClass64* f3 = new (&pool) TClass64;
- TClass64* f4 = new (&pool) TClass64;
+ TClass64* f1 = new (&pool) TClass64;
+ TClass64* f2 = new (&pool) TClass64;
+ TClass64* f3 = new (&pool) TClass64;
+ TClass64* f4 = new (&pool) TClass64;
UNIT_ASSERT_VALUES_EQUAL(64u, alignof(TClass64));
UNIT_ASSERT_VALUES_EQUAL((size_t)0, (size_t)(f1) & (alignof(TClass64) - 1));
UNIT_ASSERT_VALUES_EQUAL((size_t)0, (size_t)(f2) & (alignof(TClass64) - 1));
@@ -70,8 +70,8 @@ private:
alloced.insert(c);
}
- for (auto it : alloced) {
- delete it;
+ for (auto it : alloced) {
+ delete it;
}
for (size_t i = 0; i < 10000; ++i) {