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_thread.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_thread.cpp')
| -rw-r--r-- | src/rt/rust_task_thread.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rt/rust_task_thread.cpp b/src/rt/rust_task_thread.cpp index e64e7ab4ed8..d829ce053bc 100644 --- a/src/rt/rust_task_thread.cpp +++ b/src/rt/rust_task_thread.cpp @@ -290,7 +290,7 @@ rust_task_thread::start_main_loop() { I(this, !extra_c_stack); if (cached_c_stack) { - destroy_stack(kernel, cached_c_stack); + destroy_stack(kernel->region(), cached_c_stack); cached_c_stack = NULL; } } @@ -369,7 +369,7 @@ void rust_task_thread::prepare_c_stack(rust_task *task) { I(this, !extra_c_stack); if (!cached_c_stack && !task->have_c_stack()) { - cached_c_stack = create_stack(kernel, C_STACK_SIZE); + cached_c_stack = create_stack(kernel->region(), C_STACK_SIZE); prepare_valgrind_stack(cached_c_stack); } } @@ -377,7 +377,7 @@ rust_task_thread::prepare_c_stack(rust_task *task) { void rust_task_thread::unprepare_c_stack() { if (extra_c_stack) { - destroy_stack(kernel, extra_c_stack); + destroy_stack(kernel->region(), extra_c_stack); extra_c_stack = NULL; } } |
