Skip to content

Commit

Permalink
rt: Reconfigure the C stack for valgrind each time it's used
Browse files Browse the repository at this point in the history
  • Loading branch information
brson committed Feb 14, 2012
1 parent b157f0b commit 859e025
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion src/rt/rust_task_thread.cpp
Expand Up @@ -371,7 +371,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, C_STACK_SIZE);
prepare_valgrind_stack(cached_c_stack);
}
}

Expand Down
1 change: 1 addition & 0 deletions src/rt/rust_task_thread.h
Expand Up @@ -189,6 +189,7 @@ rust_task_thread::borrow_c_stack() {
your_stack = cached_c_stack;
cached_c_stack = NULL;
}
prepare_valgrind_stack(your_stack);
return your_stack;
}

Expand Down

0 comments on commit 859e025

Please sign in to comment.