aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/malloc
diff options
context:
space:
mode:
authordzats <dzats@yandex-team.ru>2022-02-10 16:49:37 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:37 +0300
commit25972584abddd173801b48d92f8719e83af797b1 (patch)
tree514041b54afc1ce5d33b6f1c4de17f7fa4765aa7 /library/cpp/malloc
parentc74cff1222c5ff97080e38da5019b2520991a526 (diff)
downloadydb-25972584abddd173801b48d92f8719e83af797b1.tar.gz
Restoring authorship annotation for <dzats@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/malloc')
-rw-r--r--library/cpp/malloc/api/malloc.cpp10
-rw-r--r--library/cpp/malloc/api/malloc.h4
2 files changed, 7 insertions, 7 deletions
diff --git a/library/cpp/malloc/api/malloc.cpp b/library/cpp/malloc/api/malloc.cpp
index eed1c58a38..187cd4b74e 100644
--- a/library/cpp/malloc/api/malloc.cpp
+++ b/library/cpp/malloc/api/malloc.cpp
@@ -1,6 +1,6 @@
#include <stdlib.h>
#include <stdio.h>
-
+
#include "malloc.h"
namespace {
@@ -27,11 +27,11 @@ namespace NMalloc {
, CheckParam(CheckEmptyParam)
{
}
-
+
void AbortFromCorruptedAllocator(const char* errorMessage) {
errorMessage = errorMessage ? errorMessage : "<unspecified>";
fprintf(stderr, "Allocator error: %s\n", errorMessage);
- IsAllocatorCorrupted = true;
- abort();
- }
+ IsAllocatorCorrupted = true;
+ abort();
+ }
}
diff --git a/library/cpp/malloc/api/malloc.h b/library/cpp/malloc/api/malloc.h
index ebd545d6dd..946f09ab49 100644
--- a/library/cpp/malloc/api/malloc.h
+++ b/library/cpp/malloc/api/malloc.h
@@ -15,9 +15,9 @@ namespace NMalloc {
bool (*CheckParam)(const char* param, bool defaultValue);
};
- extern volatile bool IsAllocatorCorrupted;
+ extern volatile bool IsAllocatorCorrupted;
void AbortFromCorruptedAllocator(const char* errorMessage = nullptr);
-
+
// this function should be implemented by malloc implementations
TMallocInfo MallocInfo();