aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/malloc
diff options
context:
space:
mode:
authorAlexander Gololobov <davenger@yandex-team.com>2022-02-10 16:47:37 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:37 +0300
commit39608cdb86363c75ce55b2b9a69841c3b71f22cf (patch)
tree4ec132c1665bd4d68e3628aa18d937c70d32413b /library/cpp/malloc
parent54295b9bd4dc45c54d804084fd846d945148a7f0 (diff)
downloadydb-39608cdb86363c75ce55b2b9a69841c3b71f22cf.tar.gz
Restoring authorship annotation for Alexander Gololobov <davenger@yandex-team.com>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/malloc')
-rw-r--r--library/cpp/malloc/api/malloc.cpp8
-rw-r--r--library/cpp/malloc/api/malloc.h2
2 files changed, 5 insertions, 5 deletions
diff --git a/library/cpp/malloc/api/malloc.cpp b/library/cpp/malloc/api/malloc.cpp
index eed1c58a38..9bda35814f 100644
--- a/library/cpp/malloc/api/malloc.cpp
+++ b/library/cpp/malloc/api/malloc.cpp
@@ -1,5 +1,5 @@
#include <stdlib.h>
-#include <stdio.h>
+#include <stdio.h>
#include "malloc.h"
@@ -28,9 +28,9 @@ namespace NMalloc {
{
}
- void AbortFromCorruptedAllocator(const char* errorMessage) {
- errorMessage = errorMessage ? errorMessage : "<unspecified>";
- fprintf(stderr, "Allocator error: %s\n", errorMessage);
+ void AbortFromCorruptedAllocator(const char* errorMessage) {
+ errorMessage = errorMessage ? errorMessage : "<unspecified>";
+ fprintf(stderr, "Allocator error: %s\n", errorMessage);
IsAllocatorCorrupted = true;
abort();
}
diff --git a/library/cpp/malloc/api/malloc.h b/library/cpp/malloc/api/malloc.h
index ebd545d6dd..d0d6e0c8d4 100644
--- a/library/cpp/malloc/api/malloc.h
+++ b/library/cpp/malloc/api/malloc.h
@@ -16,7 +16,7 @@ namespace NMalloc {
};
extern volatile bool IsAllocatorCorrupted;
- void AbortFromCorruptedAllocator(const char* errorMessage = nullptr);
+ void AbortFromCorruptedAllocator(const char* errorMessage = nullptr);
// this function should be implemented by malloc implementations
TMallocInfo MallocInfo();