From 71af077a5dfe7e9f932a508422c2dac81a57ebc0 Mon Sep 17 00:00:00 2001 From: Alexey Salmin <alexey.salmin@gmail.com> Date: Thu, 10 Feb 2022 16:49:37 +0300 Subject: Restoring authorship annotation for Alexey Salmin <alexey.salmin@gmail.com>. Commit 2 of 2. --- library/cpp/balloc/balloc.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'library/cpp/balloc/balloc.cpp') diff --git a/library/cpp/balloc/balloc.cpp b/library/cpp/balloc/balloc.cpp index 1635a2fab8..fab489db4c 100644 --- a/library/cpp/balloc/balloc.cpp +++ b/library/cpp/balloc/balloc.cpp @@ -76,7 +76,7 @@ namespace NBalloc { static void Y_FORCE_INLINE Enable() { tls.Mode = ToBeEnabled; } - + static bool Y_FORCE_INLINE IsDisabled() { return tls.Mode == Disabled; } @@ -273,11 +273,11 @@ extern "C" void* realloc(void* oldPtr, size_t newSize) { } #endif -// Only for testing purposes. Never use in production. +// Only for testing purposes. Never use in production. extern "C" bool IsOwnedByBalloc(void* ptr) { - return NBalloc::IsOwnedByBalloc(ptr); -} - + return NBalloc::IsOwnedByBalloc(ptr); +} + extern "C" bool BallocDisabled() { return NBalloc::IsDisabled(); } @@ -286,10 +286,10 @@ extern "C" void DisableBalloc() { NBalloc::Disable(); } -extern "C" void EnableBalloc() { - NBalloc::Enable(); -} - +extern "C" void EnableBalloc() { + NBalloc::Enable(); +} + extern "C" void* memalign(size_t alignment, size_t size) { void* ptr; int res = posix_memalign(&ptr, alignment, size); -- cgit v1.2.3