From dedfef4c4c7a5e2d3f36d4301bfd9f7e1af21640 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Tue, 20 Dec 2011 20:57:04 -0800 Subject: Revert "wip" This reverts commit aeadc6269ef76f4425a49d892ceac7ea311ef5c1. --- src/rt/rust_task.cpp | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/rt/rust_task.cpp') 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. @@ -749,15 +746,6 @@ rust_task::del_stack() { record_stack_limit(); } -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 -- cgit 1.4.1-3-g733a5