aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/context.cpp
diff options
context:
space:
mode:
authorNikita Petrenko <npetrenko97@gmail.com>2022-02-10 16:50:57 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:57 +0300
commitfd3f62e99d2990dd93788742aaf6a9bd5cb4d5a3 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /util/system/context.cpp
parentaa72317474c8df5627f69271ae16f4237e5d3612 (diff)
downloadydb-fd3f62e99d2990dd93788742aaf6a9bd5cb4d5a3.tar.gz
Restoring authorship annotation for Nikita Petrenko <npetrenko97@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'util/system/context.cpp')
-rw-r--r--util/system/context.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/util/system/context.cpp b/util/system/context.cpp
index edb8ca7705..ad99309088 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);