libcore: Remove stack alignment from task spawning

This is already done by the native task start code. Closes #1324
This commit is contained in:
Brian Anderson 2011-12-19 18:27:43 -08:00
parent 1bfc4e2e6c
commit 586281e2d6

View file

@ -316,8 +316,9 @@ fn unsafe_spawn_inner(-thunk: fn@(),
let thunkenv: *mutable uint = cast(sp - ptrsize);
*thunkfn = cast(raw_thunk.code);;
*thunkenv = cast(raw_thunk.env);;
// align the stack to 16 bytes
(**task_ptr).stack_ptr = cast(sp - ptrsize * 4u);
// Advance the stack pointer. No need to align because
// the native code will do that for us
(**task_ptr).stack_ptr = cast(sp - ptrsize * 2u);
// set up notifications if they are enabled.
alt notify {