about summary refs log tree commit diff
path: root/src/rt/rust_task.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/rt/rust_task.cpp')
-rw-r--r--src/rt/rust_task.cpp2
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);
 }