aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/ytalloc
diff options
context:
space:
mode:
authorvskipin <vskipin@yandex-team.ru>2022-02-10 16:46:00 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:00 +0300
commit4e4b78bd7b67e2533da4dbb9696374a6d6068e32 (patch)
treea7a5543d815c451256ece74081d960b4e1d70ec2 /library/cpp/ytalloc
parent5b00ed04a5137a452fa6d3423cb0c9b54ac27408 (diff)
downloadydb-4e4b78bd7b67e2533da4dbb9696374a6d6068e32.tar.gz
Restoring authorship annotation for <vskipin@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/ytalloc')
-rw-r--r--library/cpp/ytalloc/api/fallback.cpp8
-rw-r--r--library/cpp/ytalloc/api/ytalloc.h6
2 files changed, 7 insertions, 7 deletions
diff --git a/library/cpp/ytalloc/api/fallback.cpp b/library/cpp/ytalloc/api/fallback.cpp
index 5880ede439..7b4e607cb7 100644
--- a/library/cpp/ytalloc/api/fallback.cpp
+++ b/library/cpp/ytalloc/api/fallback.cpp
@@ -19,13 +19,13 @@ Y_WEAK void* Allocate(size_t size)
Y_WEAK void* AllocatePageAligned(size_t size)
{
-#if defined(_win_)
- return ::_aligned_malloc(size, PageSize);
+#if defined(_win_)
+ return ::_aligned_malloc(size, PageSize);
#elif defined(_darwin_) || !defined(_musl_)
return ::valloc(size);
-#else
+#else
return ::memalign(PageSize, size);
-#endif
+#endif
}
Y_WEAK void* AllocateSmall(size_t rank)
diff --git a/library/cpp/ytalloc/api/ytalloc.h b/library/cpp/ytalloc/api/ytalloc.h
index d942dde638..81684e724e 100644
--- a/library/cpp/ytalloc/api/ytalloc.h
+++ b/library/cpp/ytalloc/api/ytalloc.h
@@ -15,9 +15,9 @@ namespace NYT::NYTAlloc {
////////////////////////////////////////////////////////////////////////////////
// Macros
-#if defined(_linux_) && \
- !defined(_asan_enabled_) && \
- !defined(_msan_enabled_) && \
+#if defined(_linux_) && \
+ !defined(_asan_enabled_) && \
+ !defined(_msan_enabled_) && \
!defined(_tsan_enabled_)
#define YT_ALLOC_ENABLED
#endif