aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/ytalloc
diff options
context:
space:
mode:
authorprime <prime@yandex-team.ru>2022-02-10 16:46:00 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:00 +0300
commit3695a7cd42b74a4987d8d5a8f2e2443556998943 (patch)
treeee79ee9294a61ee00e647684b3700d0a87e102a3 /library/cpp/ytalloc
parent4d8b546b89b5afc08cf3667e176271c7ba935f33 (diff)
downloadydb-3695a7cd42b74a4987d8d5a8f2e2443556998943.tar.gz
Restoring authorship annotation for <prime@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/ytalloc')
-rw-r--r--library/cpp/ytalloc/api/fallback.cpp6
-rw-r--r--library/cpp/ytalloc/api/ytalloc.h4
-rw-r--r--library/cpp/ytalloc/ya.make2
3 files changed, 6 insertions, 6 deletions
diff --git a/library/cpp/ytalloc/api/fallback.cpp b/library/cpp/ytalloc/api/fallback.cpp
index 5880ede439..a729e46f3b 100644
--- a/library/cpp/ytalloc/api/fallback.cpp
+++ b/library/cpp/ytalloc/api/fallback.cpp
@@ -21,10 +21,10 @@ Y_WEAK void* AllocatePageAligned(size_t size)
{
#if defined(_win_)
return ::_aligned_malloc(size, PageSize);
-#elif defined(_darwin_) || !defined(_musl_)
- return ::valloc(size);
+#elif defined(_darwin_) || !defined(_musl_)
+ return ::valloc(size);
#else
- return ::memalign(PageSize, size);
+ return ::memalign(PageSize, size);
#endif
}
diff --git a/library/cpp/ytalloc/api/ytalloc.h b/library/cpp/ytalloc/api/ytalloc.h
index d942dde638..1088fec177 100644
--- a/library/cpp/ytalloc/api/ytalloc.h
+++ b/library/cpp/ytalloc/api/ytalloc.h
@@ -190,7 +190,7 @@ void SetBacktraceFormatter(TBacktraceFormatter provider);
//! Typically invoked on application startup to lock all binaries in memory
//! and prevent executable code and static data to be paged out
//! causing latency spikes.
-void MlockFileMappings(bool populate = true);
+void MlockFileMappings(bool populate = true);
////////////////////////////////////////////////////////////////////////////////
// Configuration API
@@ -349,7 +349,7 @@ DEFINE_ENUM(ETimingEventType,
(MadviseDontNeed)
(Locking)
(Prefault)
- (FilePrefault)
+ (FilePrefault)
);
struct TTimingEventCounters
diff --git a/library/cpp/ytalloc/ya.make b/library/cpp/ytalloc/ya.make
index 97aa73c135..f0771169f7 100644
--- a/library/cpp/ytalloc/ya.make
+++ b/library/cpp/ytalloc/ya.make
@@ -12,6 +12,6 @@ RECURSE(
IF (YT_ALLOC_ENABLED)
RECURSE(
ut
- benchmarks
+ benchmarks
)
ENDIF()