rt: Stop calling prepare_valgrind_stack when it's not needed

This commit is contained in:
Brian Anderson 2012-03-03 16:57:58 -08:00
parent f057f00300
commit c78da1e170
2 changed files with 0 additions and 2 deletions

View File

@ -602,7 +602,6 @@ rust_task::new_stack(size_t requested_sz) {
LOGPTR(thread, "stk end", new_stk->end);
stk = new_stk;
prepare_valgrind_stack(stk);
total_stack_sz += user_stack_size(new_stk);
}

View File

@ -388,7 +388,6 @@ 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->region(), C_STACK_SIZE);
prepare_valgrind_stack(cached_c_stack);
}
}