Skip to content

Commit

Permalink
trim the stack back down to the bare necessity
Browse files Browse the repository at this point in the history
  • Loading branch information
vtjnash authored and tkelman committed Dec 16, 2014
1 parent 0b44aca commit 1fb4e6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/task.c
Original file line number Diff line number Diff line change
Expand Up @@ -346,10 +346,10 @@ static void ctx_switch(jl_task_t *t, jl_jmp_buf *where)
restore_stack(t, where, NULL);
} else {
#ifdef ASM_COPY_STACKS
void *stackbase = jl_stackbase - 0x10;
void *stackbase = jl_stackbase;
#ifdef _CPU_X86_64_
#ifdef _OS_WINDOWS_
stackbase -= 0x40;
stackbase -= 0x20;
#endif
asm(" movq %0, %%rsp;\n"
" xorq %%rbp, %%rbp;\n"
Expand Down

0 comments on commit 1fb4e6d

Please sign in to comment.