aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/lfalloc
diff options
context:
space:
mode:
authorrisenberg <risenberg@yandex-team.ru>2022-02-10 16:49:47 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:47 +0300
commitec551e975caf33bd88e2803b55464cad608e2441 (patch)
treed2f84f5b97ecb84201832f831b261817be37fbfe /library/cpp/lfalloc
parent6a705ee267e43301156c202a4b371d47ddd4dd4f (diff)
downloadydb-ec551e975caf33bd88e2803b55464cad608e2441.tar.gz
Restoring authorship annotation for <risenberg@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/lfalloc')
-rw-r--r--library/cpp/lfalloc/lf_allocX64.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/library/cpp/lfalloc/lf_allocX64.h b/library/cpp/lfalloc/lf_allocX64.h
index fd2a906d6f..cb9dfe2f1d 100644
--- a/library/cpp/lfalloc/lf_allocX64.h
+++ b/library/cpp/lfalloc/lf_allocX64.h
@@ -300,14 +300,14 @@ enum EMMapMode {
MM_NORMAL, // memory for small allocs
MM_HUGE // memory for large allocs
};
-
+
#ifndef _MSC_VER
-inline void VerifyMmapResult(void* result) {
+inline void VerifyMmapResult(void* result) {
if (Y_UNLIKELY(result == MAP_FAILED))
NMalloc::AbortFromCorruptedAllocator("negative size requested? or just out of mem");
-}
+}
#endif
-
+
#if !defined(_MSC_VER) && !defined(_freebsd_) && defined(_64_)
static char* AllocWithMMapLinuxImpl(uintptr_t sz, EMMapMode mode) {
char* volatile* areaPtr;
@@ -349,7 +349,7 @@ static char* AllocWithMMapLinuxImpl(uintptr_t sz, EMMapMode mode) {
continue;
char* largeBlock = (char*)mmap(prevAllocPtr, sz, mapProt, mapFlags, -1, 0);
- VerifyMmapResult(largeBlock);
+ VerifyMmapResult(largeBlock);
if (largeBlock == prevAllocPtr)
return largeBlock;
if (largeBlock)