aboutsummaryrefslogtreecommitdiffstats
path: root/util/system
diff options
context:
space:
mode:
authormarat-khalili <marat-khalili@yandex-team.ru>2022-02-10 16:51:52 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:51:52 +0300
commit45d88ab6257c06a37cf909ba04512ba970eca425 (patch)
treeab7fbbf3253d4c0e2793218f09378908beb025fb /util/system
parent4820b82de461ea3ac2dce7c2a77eeda965fffc9c (diff)
downloadydb-45d88ab6257c06a37cf909ba04512ba970eca425.tar.gz
Restoring authorship annotation for <marat-khalili@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/system')
-rw-r--r--util/system/sanitizers.cpp22
-rw-r--r--util/system/sanitizers.h26
2 files changed, 24 insertions, 24 deletions
diff --git a/util/system/sanitizers.cpp b/util/system/sanitizers.cpp
index 986cfeaaa0..bb799a9e2e 100644
--- a/util/system/sanitizers.cpp
+++ b/util/system/sanitizers.cpp
@@ -123,20 +123,20 @@ void TFiberContext::AfterStart() noexcept {
__sanitizer_finish_switch_fiber(nullptr, nullptr, nullptr);
#endif
}
-
-#if defined(_tsan_enabled_)
-extern "C" {
- // This function should not be directly exposed in headers
- // due to signature variations among contrib headers.
+
+#if defined(_tsan_enabled_)
+extern "C" {
+ // This function should not be directly exposed in headers
+ // due to signature variations among contrib headers.
void AnnotateBenignRaceSized(const char* file, int line,
const volatile void* address,
- size_t size,
+ size_t size,
const char* description);
-}
+}
void NSan::AnnotateBenignRaceSized(const char* file, int line,
const volatile void* address,
- size_t size,
+ size_t size,
const char* description) noexcept {
- ::AnnotateBenignRaceSized(file, line, address, size, description);
-}
-#endif
+ ::AnnotateBenignRaceSized(file, line, address, size, description);
+}
+#endif
diff --git a/util/system/sanitizers.h b/util/system/sanitizers.h
index 1b17b25d9b..965e5c751e 100644
--- a/util/system/sanitizers.h
+++ b/util/system/sanitizers.h
@@ -119,23 +119,23 @@ namespace NSan {
Y_UNUSED(ptr);
#endif
}
-
-#if defined(_tsan_enabled_)
- // defined in .cpp to avoid exposing problematic C-linkage version of AnnotateBenignRaceSized(...)
+
+#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,
- size_t size,
+ size_t size,
const char* description) noexcept;
-#else
+#else
inline static void AnnotateBenignRaceSized(const char* file, int line,
const volatile void* address,
- size_t size,
+ size_t size,
const char* description) noexcept {
- Y_UNUSED(file);
- Y_UNUSED(line);
- Y_UNUSED(address);
- Y_UNUSED(size);
- Y_UNUSED(description);
- }
-#endif
+ Y_UNUSED(file);
+ Y_UNUSED(line);
+ Y_UNUSED(address);
+ Y_UNUSED(size);
+ Y_UNUSED(description);
+ }
+#endif
}