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 /library/cpp/lfalloc/lf_allocX64.h | |
parent | 5feb3b4d96aaa42ce546426241c48d626e6d6685 (diff) | |
download | ydb-9d2a99f5085a7425ef22831762c8684b687e0500.tar.gz |
Restoring authorship annotation for <omakovski@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/lfalloc/lf_allocX64.h')
-rw-r--r-- | library/cpp/lfalloc/lf_allocX64.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/library/cpp/lfalloc/lf_allocX64.h b/library/cpp/lfalloc/lf_allocX64.h index 6d0c3784de..fd2a906d6f 100644 --- a/library/cpp/lfalloc/lf_allocX64.h +++ b/library/cpp/lfalloc/lf_allocX64.h @@ -127,7 +127,7 @@ static bool FillMemoryOnAllocation = true; static bool TransparentHugePages = false; // force MADV_HUGEPAGE for large allocs static bool MapHugeTLB = false; // force MAP_HUGETLB for small allocs static bool EnableDefrag = true; - + // Buffers that are larger than this size will not be filled with 0xcf #ifndef DBG_FILL_MAX_SIZE #define DBG_FILL_MAX_SIZE 0x01000000000000ULL @@ -379,9 +379,9 @@ static char* AllocWithMMap(uintptr_t sz, EMMapMode mode) { NMalloc::AbortFromCorruptedAllocator("out of working set, something has broken"); #else char* largeBlock = AllocWithMMapLinuxImpl(sz, mode); - if (TransparentHugePages) { - madvise(largeBlock, sz, MADV_HUGEPAGE); - } + if (TransparentHugePages) { + madvise(largeBlock, sz, MADV_HUGEPAGE); + } #endif #endif Y_ASSERT_NOBT(largeBlock); @@ -1823,10 +1823,10 @@ static bool LFAlloc_SetParam(const char* param, const char* value) { return true; } #endif - if (!strcmp(param, "TransparentHugePages")) { - TransparentHugePages = !strcmp(value, "true"); - return true; - } + if (!strcmp(param, "TransparentHugePages")) { + TransparentHugePages = !strcmp(value, "true"); + return true; + } if (!strcmp(param, "MapHugeTLB")) { MapHugeTLB = !strcmp(value, "true"); return true; |