aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/sanitizers.h
diff options
context:
space:
mode:
authorAnton Samokhvalov <pg83@yandex.ru>2022-02-10 16:45:17 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:17 +0300
commitd3a398281c6fd1d3672036cb2d63f842d2cb28c5 (patch)
treedd4bd3ca0f36b817e96812825ffaf10d645803f2 /util/system/sanitizers.h
parent72cb13b4aff9bc9cf22e49251bc8fd143f82538f (diff)
downloadydb-d3a398281c6fd1d3672036cb2d63f842d2cb28c5.tar.gz
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 2 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 a8c92a17ec..965e5c751e 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
-}
+}