Skip to content

Commit 81f932e

Browse files
committed
rt: Fix alignment of stacks generated by __morestack
1 parent e056ffa commit 81f932e

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/rt/rust_task.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,6 @@ rust_task::new_stack(size_t stk_sz, void *args_addr, size_t args_sz) {
600600
// Make enough room on the new stack to hold the old stack pointer
601601
// in addition to the function arguments
602602
new_sp = align_down(new_sp - (args_sz + sizeof_retaddr));
603-
new_sp += sizeof_retaddr;
604603
memcpy(new_sp, args_addr, args_sz);
605604
record_stack_limit();
606605
return new_sp;

0 commit comments

Comments
 (0)