diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-02-10 11:37:24 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-02-10 12:58:35 -0800 |
| commit | 3406da49d98c93b54c8497310d7a7aeb7e9991b0 (patch) | |
| tree | 70acdd2241043d817d35537f5dfd1b4a1a0a5452 /src/rt/rust_task.cpp | |
| parent | c42492e6aa481a65e4919b5ab26f4b0936556fc0 (diff) | |
| download | rust-3406da49d98c93b54c8497310d7a7aeb7e9991b0.tar.gz rust-3406da49d98c93b54c8497310d7a7aeb7e9991b0.zip | |
rt: Extract prepare_valgrind_stack from register_valgrind_stack
Diffstat (limited to 'src/rt/rust_task.cpp')
| -rw-r--r-- | src/rt/rust_task.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rt/rust_task.cpp b/src/rt/rust_task.cpp index c290e2ade13..1b2effce73f 100644 --- a/src/rt/rust_task.cpp +++ b/src/rt/rust_task.cpp @@ -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); } |
