We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bfc4e2 commit 586281eCopy full SHA for 586281e
src/libcore/task.rs
@@ -316,8 +316,9 @@ fn unsafe_spawn_inner(-thunk: fn@(),
316
let thunkenv: *mutable uint = cast(sp - ptrsize);
317
*thunkfn = cast(raw_thunk.code);;
318
*thunkenv = cast(raw_thunk.env);;
319
- // align the stack to 16 bytes
320
- (**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
321
+ (**task_ptr).stack_ptr = cast(sp - ptrsize * 2u);
322
323
// set up notifications if they are enabled.
324
alt notify {
0 commit comments