We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c4c7922 commit f39bb15Copy full SHA for f39bb15
1 file changed
thread/thread.cpp
@@ -753,12 +753,14 @@ R"(
753
754
DEF_ASM_FUNC(_photon_thread_stub)
755
R"(
756
+ mov %rbp, %rbx
757
+ mov $0, %rbp
758
call _asan_start
- mov 0x40(%rbp), %rdi
- movq $0, 0x40(%rbp)
759
- call *0x48(%rbp)
760
- mov %rax, 0x48(%rbp)
761
- mov %rbp, %rdi
+ mov 0x40(%rbx), %rdi
+ movq $0, 0x40(%rbx)
+ call *0x48(%rbx)
762
+ mov %rax, 0x48(%rbx)
763
+ mov %rbx, %rdi
764
call _photon_thread_die
765
)"
766
);
@@ -1284,7 +1286,8 @@ R"(
1284
1286
return rq.current->error_number;
1285
1287
}
1288
- inline void thread_yield_fast() {
1289
+ __attribute__((noinline))
1290
+ void thread_yield_fast() {
1291
auto sw = AtomicRunQ().goto_next();
1292
switch_context(sw.from, sw.to);
1293
0 commit comments