From e4c027446ec0d985be98dcbdce2b80308b88b12a Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Mon, 27 Feb 2012 14:01:36 -0800 Subject: [PATCH] Revert "rt: Reconfigure the C stack for valgrind each time it's used" This reverts commit 859e0256524a1f19ca0c79f518d2bb396355f174. This ended up not fixing the '0 bytes lost' problem and has some performance impact. --- src/rt/rust_task_thread.cpp | 1 + src/rt/rust_task_thread.h | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rt/rust_task_thread.cpp b/src/rt/rust_task_thread.cpp index a83f890d62b..dde16ad70bd 100644 --- a/src/rt/rust_task_thread.cpp +++ b/src/rt/rust_task_thread.cpp @@ -371,6 +371,7 @@ 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); + prepare_valgrind_stack(cached_c_stack); } } diff --git a/src/rt/rust_task_thread.h b/src/rt/rust_task_thread.h index f82a20a70a2..58ae8aa12f5 100644 --- a/src/rt/rust_task_thread.h +++ b/src/rt/rust_task_thread.h @@ -189,7 +189,6 @@ rust_task_thread::borrow_c_stack() { your_stack = cached_c_stack; cached_c_stack = NULL; } - prepare_valgrind_stack(your_stack); return your_stack; }