aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/malloc/api/malloc.h
diff options
context:
space:
mode:
authornga <nga@yandex-team.ru>2022-02-10 16:48:09 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:09 +0300
commit1f553f46fb4f3c5eec631352cdd900a0709016af (patch)
treea231fba2c03b440becaea6c86a2702d0bfb0336e /library/cpp/malloc/api/malloc.h
parentc4de7efdedc25b49cbea74bd589eecb61b55b60a (diff)
downloadydb-1f553f46fb4f3c5eec631352cdd900a0709016af.tar.gz
Restoring authorship annotation for <nga@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/malloc/api/malloc.h')
-rw-r--r--library/cpp/malloc/api/malloc.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/library/cpp/malloc/api/malloc.h b/library/cpp/malloc/api/malloc.h
index ebd545d6dd..3185cb3769 100644
--- a/library/cpp/malloc/api/malloc.h
+++ b/library/cpp/malloc/api/malloc.h
@@ -1,25 +1,25 @@
-#pragma once
-
+#pragma once
+
#include <string.h>
#include <util/system/compiler.h>
-namespace NMalloc {
- struct TMallocInfo {
- TMallocInfo();
+namespace NMalloc {
+ struct TMallocInfo {
+ TMallocInfo();
- const char* Name;
+ const char* Name;
bool (*SetParam)(const char* param, const char* value);
const char* (*GetParam)(const char* param);
bool (*CheckParam)(const char* param, bool defaultValue);
- };
-
+ };
+
extern volatile bool IsAllocatorCorrupted;
void AbortFromCorruptedAllocator(const char* errorMessage = nullptr);
- // this function should be implemented by malloc implementations
- TMallocInfo MallocInfo();
+ // this function should be implemented by malloc implementations
+ TMallocInfo MallocInfo();
struct TAllocHeader {
void* Block;
@@ -29,4 +29,4 @@ namespace NMalloc {
AllocSize = size | signature;
}
};
-}
+}