aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/sanitizers.h
diff options
context:
space:
mode:
authorCthulhu <cthulhu@yandex-team.ru>2022-02-10 16:47:44 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:44 +0300
commit6aced6c854653b75aab9808d5995be5fc4d9fa53 (patch)
treec0748b5dcbade83af788c0abfa89c0383d6b779c /util/system/sanitizers.h
parentbcb3e9d0eb2a8188a6a9fe0907a8949ce4881a4e (diff)
downloadydb-6aced6c854653b75aab9808d5995be5fc4d9fa53.tar.gz
Restoring authorship annotation for Cthulhu <cthulhu@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/system/sanitizers.h')
-rw-r--r--util/system/sanitizers.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/util/system/sanitizers.h b/util/system/sanitizers.h
index 18d8666e88..965e5c751e 100644
--- a/util/system/sanitizers.h
+++ b/util/system/sanitizers.h
@@ -1,5 +1,5 @@
-#pragma once
-
+#pragma once
+
#include "defaults.h"
extern "C" { // sanitizers API
@@ -69,18 +69,18 @@ namespace NSan {
return true;
#else
return false;
-#endif
+#endif
}
-
+
// Determines if msan present
inline constexpr static bool MSanIsOn() noexcept {
#if defined(_msan_enabled_)
return true;
#else
return false;
-#endif
+#endif
}
-
+
// Make memory region fully initialized (without changing its contents).
inline static void Unpoison(const volatile void* a, size_t size) noexcept {
#if defined(_msan_enabled_)
@@ -90,18 +90,18 @@ namespace NSan {
Y_UNUSED(size);
#endif
}
-
+
// Make memory region fully uninitialized (without changing its contents).
// This is a legacy interface that does not update origin information. Use __msan_allocated_memory() instead.
inline static void Poison(const volatile void* a, size_t size) noexcept {
#if defined(_msan_enabled_)
__msan_poison(a, size);
-#else
+#else
Y_UNUSED(a);
Y_UNUSED(size);
-#endif
+#endif
}
-
+
// Checks that memory range is fully initialized, and reports an error if it is not.
inline static void CheckMemIsInitialized(const volatile void* a, size_t size) noexcept {
#if defined(_msan_enabled_)