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 | 5feb3b4d96aaa42ce546426241c48d626e6d6685 (patch) | |
tree | 728359f39c2eeab2b894f3d8664ea1499ffde216 /library/cpp/lfalloc/lf_allocX64.h | |
parent | 077ab504815199e62ffc54daee873cf1d6b64297 (diff) | |
download | ydb-5feb3b4d96aaa42ce546426241c48d626e6d6685.tar.gz |
Restoring authorship annotation for <omakovski@yandex-team.ru>. Commit 1 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 fd2a906d6ff..6d0c3784de3 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; |