diff options
author | marat-khalili <marat-khalili@yandex-team.ru> | 2022-02-10 16:51:52 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:51:52 +0300 |
commit | 4820b82de461ea3ac2dce7c2a77eeda965fffc9c (patch) | |
tree | 22e2f840a95c94ee48844701356e8a10d459b94f /util/system | |
parent | fcb328858da947c52819d89cea4a4357cc207ae4 (diff) | |
download | ydb-4820b82de461ea3ac2dce7c2a77eeda965fffc9c.tar.gz |
Restoring authorship annotation for <marat-khalili@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/system')
-rw-r--r-- | util/system/sanitizers.cpp | 22 | ||||
-rw-r--r-- | util/system/sanitizers.h | 26 |
2 files changed, 24 insertions, 24 deletions
diff --git a/util/system/sanitizers.cpp b/util/system/sanitizers.cpp index bb799a9e2e..986cfeaaa0 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 965e5c751e..1b17b25d9b 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 } |