diff options
author | somov <somov@yandex-team.ru> | 2022-02-10 16:45:49 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:49 +0300 |
commit | 7489e4682331202b9c7d863c0898eb83d7b12c2b (patch) | |
tree | 9142afc54d335ea52910662635b898e79e192e49 /util/system/sanitizers.cpp | |
parent | a5950576e397b1909261050b8c7da16db58f10b1 (diff) | |
download | ydb-7489e4682331202b9c7d863c0898eb83d7b12c2b.tar.gz |
Restoring authorship annotation for <somov@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/system/sanitizers.cpp')
-rw-r--r-- | util/system/sanitizers.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/util/system/sanitizers.cpp b/util/system/sanitizers.cpp index 744ec6ce87..bb799a9e2e 100644 --- a/util/system/sanitizers.cpp +++ b/util/system/sanitizers.cpp @@ -114,15 +114,15 @@ void TFiberContext::BeforeSwitch(TFiberContext* old) noexcept { void TFiberContext::AfterSwitch() noexcept { #if defined(_asan_enabled_) - __sanitizer_finish_switch_fiber(Token_, nullptr, nullptr); + __sanitizer_finish_switch_fiber(Token_, nullptr, nullptr); +#endif +} + +void TFiberContext::AfterStart() noexcept { +#if defined(_asan_enabled_) + __sanitizer_finish_switch_fiber(nullptr, nullptr, nullptr); #endif } - -void TFiberContext::AfterStart() noexcept { -#if defined(_asan_enabled_) - __sanitizer_finish_switch_fiber(nullptr, nullptr, nullptr); -#endif -} #if defined(_tsan_enabled_) extern "C" { |