From ec551e975caf33bd88e2803b55464cad608e2441 Mon Sep 17 00:00:00 2001 From: risenberg Date: Thu, 10 Feb 2022 16:49:47 +0300 Subject: Restoring authorship annotation for . Commit 1 of 2. --- library/cpp/lfalloc/lf_allocX64.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'library/cpp/lfalloc') diff --git a/library/cpp/lfalloc/lf_allocX64.h b/library/cpp/lfalloc/lf_allocX64.h index fd2a906d6ff..cb9dfe2f1d8 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) -- cgit v1.3