rt: Extract prepare_valgrind_stack from register_valgrind_stack

This commit is contained in:
Brian Anderson
2012-02-10 11:37:24 -08:00
parent c42492e6aa
commit 3406da49d9
4 changed files with 10 additions and 0 deletions

View File

@@ -568,6 +568,7 @@ rust_task::new_stack(size_t requested_sz) {
stk = stk->prev;
A(thread, stk->prev == NULL, "Bogus stack ptr");
register_valgrind_stack(stk);
prepare_valgrind_stack(stk);
return;
} else {
LOG(this, mem, "existing stack is not big enough");
@@ -599,6 +600,7 @@ rust_task::new_stack(size_t requested_sz) {
stk = new_stk;
register_valgrind_stack(stk);
prepare_valgrind_stack(stk);
total_stack_sz += user_stack_size(new_stk);
}