aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/sanitizers.h
diff options
context:
space:
mode:
authorAnton Samokhvalov <pg83@yandex.ru>2022-02-10 16:45:15 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:15 +0300
commit72cb13b4aff9bc9cf22e49251bc8fd143f82538f (patch)
treeda2c34829458c7d4e74bdfbdf85dff449e9e7fb8 /util/system/sanitizers.h
parent778e51ba091dc39e7b7fcab2b9cf4dbedfb6f2b5 (diff)
downloadydb-72cb13b4aff9bc9cf22e49251bc8fd143f82538f.tar.gz
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 1 of 2.
Diffstat (limited to 'util/system/sanitizers.h')
-rw-r--r--util/system/sanitizers.h50
1 files changed, 25 insertions, 25 deletions
diff --git a/util/system/sanitizers.h b/util/system/sanitizers.h
index 965e5c751e..a8c92a17ec 100644
--- a/util/system/sanitizers.h
+++ b/util/system/sanitizers.h
@@ -5,42 +5,42 @@
extern "C" { // sanitizers API
#if defined(_asan_enabled_)
- void __lsan_ignore_object(const void* p);
+ void __lsan_ignore_object(const void* p);
#endif
#if defined(_msan_enabled_)
- void __msan_unpoison(const volatile void* a, size_t size);
- void __msan_poison(const volatile void* a, size_t size);
- void __msan_check_mem_is_initialized(const volatile void* x, size_t size);
+ void __msan_unpoison(const volatile void* a, size_t size);
+ void __msan_poison(const volatile void* a, size_t size);
+ void __msan_check_mem_is_initialized(const volatile void* x, size_t size);
#endif
}; // sanitizers API
namespace NSan {
- class TFiberContext {
- public:
- TFiberContext() noexcept;
+ class TFiberContext {
+ public:
+ TFiberContext() noexcept;
TFiberContext(const void* stack, size_t len, const char* contName) noexcept;
- ~TFiberContext() noexcept;
-
- void BeforeFinish() noexcept;
+ ~TFiberContext() noexcept;
+
+ void BeforeFinish() noexcept;
void BeforeSwitch(TFiberContext* old) noexcept;
- void AfterSwitch() noexcept;
-
+ void AfterSwitch() noexcept;
+
static void AfterStart() noexcept;
- private:
- void* Token_;
- const void* Stack_;
- size_t Len_;
+ private:
+ void* Token_;
+ const void* Stack_;
+ size_t Len_;
const bool IsMainFiber_;
#if defined(_tsan_enabled_)
void* const CurrentTSanFiberContext_;
#endif
- };
-
+ };
+
// Returns plain if no sanitizer enabled or sanitized otherwise
// Ment to be used in test code for constants (timeouts, etc)
template <typename T>
@@ -122,15 +122,15 @@ namespace NSan {
#if defined(_tsan_enabled_)
// defined in .cpp to avoid exposing problematic C-linkage version of AnnotateBenignRaceSized(...)
- void AnnotateBenignRaceSized(const char* file, int line,
- const volatile void* address,
+ void AnnotateBenignRaceSized(const char* file, int line,
+ const volatile void* address,
size_t size,
- const char* description) noexcept;
+ const char* description) noexcept;
#else
- inline static void AnnotateBenignRaceSized(const char* file, int line,
- const volatile void* address,
+ inline static void AnnotateBenignRaceSized(const char* file, int line,
+ const volatile void* address,
size_t size,
- const char* description) noexcept {
+ const char* description) noexcept {
Y_UNUSED(file);
Y_UNUSED(line);
Y_UNUSED(address);
@@ -138,4 +138,4 @@ namespace NSan {
Y_UNUSED(description);
}
#endif
-}
+}