diff options
author | Nikita Petrenko <npetrenko97@gmail.com> | 2022-02-10 16:50:57 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:57 +0300 |
commit | aa72317474c8df5627f69271ae16f4237e5d3612 (patch) | |
tree | d7e630df3de42aabad50283b0f94db75d86ccaa1 /util/system/context.cpp | |
parent | 5532ae5e5914329418d821bdad60854ab1f3222c (diff) | |
download | ydb-aa72317474c8df5627f69271ae16f4237e5d3612.tar.gz |
Restoring authorship annotation for Nikita Petrenko <npetrenko97@gmail.com>. Commit 1 of 2.
Diffstat (limited to 'util/system/context.cpp')
-rw-r--r-- | util/system/context.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/util/system/context.cpp b/util/system/context.cpp index ad993090884..edb8ca77059 100644 --- a/util/system/context.cpp +++ b/util/system/context.cpp @@ -115,16 +115,16 @@ namespace { } #if defined(_x86_64_) - // not sure if Y_NO_SANITIZE is needed + // not sure if Y_NO_SANITIZE is needed Y_NO_SANITIZE("address") Y_NO_SANITIZE("memory") extern "C" void ContextTrampoLine(void*, void*, void*, void*, void*, void*, // register arguments, no defined value /* first argument passed through the stack */ void* t1, /* second argument passed through the stack */ void* t2) { - Y_ASSERT(t1 == t2); - Run(t1); - } + Y_ASSERT(t1 == t2); + Run(t1); + } #else - Y_NO_SANITIZE("address") + Y_NO_SANITIZE("address") Y_NO_SANITIZE("memory") static void ContextTrampoLine() { void** argPtr = (void**)((char*)AlignUp(&argPtr + EXTRA_PUSH_ARGS, STACK_ALIGN) + STACK_ALIGN); Y_ASSERT(*(argPtr - 1) == *(argPtr - 2)); @@ -169,12 +169,12 @@ TContMachineContext::TContMachineContext(const TContClosure& c) #endif #if defined(_x86_64_) - stack.ReAlign(); - // push twice to preserve alignment by 16 - stack.Push(trampoline); // second stack argument - stack.Push(trampoline); // first stack argument - - stack.Push(nullptr); // fake return address + stack.ReAlign(); + // push twice to preserve alignment by 16 + stack.Push(trampoline); // second stack argument + stack.Push(trampoline); // first stack argument + + stack.Push(nullptr); // fake return address #else stack.Push(trampoline); stack.Push(trampoline); |