diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-02-27 15:42:22 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-02-27 16:13:51 -0800 |
| commit | 7e9aa6c3c2ae054e32dfcc7c5e4830ce7c4c6921 (patch) | |
| tree | 3e25c31b0deaf0ad38edb6f7b15a7505f0bc57be /src/rt/rust_task.cpp | |
| parent | b3f77bf92703543793a8073c8319e461e024cb69 (diff) | |
| download | rust-7e9aa6c3c2ae054e32dfcc7c5e4830ce7c4c6921.tar.gz rust-7e9aa6c3c2ae054e32dfcc7c5e4830ce7c4c6921.zip | |
rt: Don't zero new stacks
Diffstat (limited to 'src/rt/rust_task.cpp')
| -rw-r--r-- | src/rt/rust_task.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rt/rust_task.cpp b/src/rt/rust_task.cpp index 9922e34f798..c6d1ce4f100 100644 --- a/src/rt/rust_task.cpp +++ b/src/rt/rust_task.cpp @@ -552,7 +552,7 @@ void rust_task::free_stack(stk_seg *stk) { LOGPTR(thread, "freeing stk segment", (uintptr_t)stk); total_stack_sz -= user_stack_size(stk); - destroy_stack(this, stk); + destroy_stack(&local_region, stk); } void @@ -596,7 +596,7 @@ rust_task::new_stack(size_t requested_sz) { } size_t sz = rust_stk_sz + RED_ZONE_SIZE; - stk_seg *new_stk = create_stack(this, sz); + stk_seg *new_stk = create_stack(&local_region, sz); LOGPTR(thread, "new stk", (uintptr_t)new_stk); new_stk->prev = NULL; new_stk->next = stk; |
