diff options
| author | Brian Anderson <banderson@mozilla.com> | 2011-12-20 20:57:04 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2011-12-20 20:57:04 -0800 |
| commit | dedfef4c4c7a5e2d3f36d4301bfd9f7e1af21640 (patch) | |
| tree | 01b407d906d741edb463522309b3fd2cb1363100 /src/rt/rust_task.cpp | |
| parent | 854daaec0c4cf0c236e46b45a1254c85a8b352db (diff) | |
| download | rust-dedfef4c4c7a5e2d3f36d4301bfd9f7e1af21640.tar.gz rust-dedfef4c4c7a5e2d3f36d4301bfd9f7e1af21640.zip | |
Revert "wip"
This reverts commit aeadc6269ef76f4425a49d892ceac7ea311ef5c1.
Diffstat (limited to 'src/rt/rust_task.cpp')
| -rw-r--r-- | src/rt/rust_task.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/rt/rust_task.cpp b/src/rt/rust_task.cpp index 89570782942..2e6c41a8e79 100644 --- a/src/rt/rust_task.cpp +++ b/src/rt/rust_task.cpp @@ -404,9 +404,6 @@ rust_task::yield(size_t time_in_us, bool *killed) { *killed = true; } - // We're not going to need any extra stack for a while - clear_stack_cache(); - yield_timer.reset_us(time_in_us); // Return to the scheduler. @@ -750,15 +747,6 @@ rust_task::del_stack() { } void -rust_task::clear_stack_cache() { - A(sched, stk != NULL, "Expected to have a stack"); - if (stk->prev != NULL) { - free_stk(this, stk->prev); - stk->prev = NULL; - } -} - -void rust_task::record_stack_limit() { // The function prolog compares the amount of stack needed to the end of // the stack. As an optimization, when the frame size is less than 256 |
