Skip to content

Commit c78da1e

Browse files
committed
rt: Stop calling prepare_valgrind_stack when it's not needed
1 parent f057f00 commit c78da1e

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

src/rt/rust_task.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,6 @@ rust_task::new_stack(size_t requested_sz) {
602602
LOGPTR(thread, "stk end", new_stk->end);
603603

604604
stk = new_stk;
605-
prepare_valgrind_stack(stk);
606605
total_stack_sz += user_stack_size(new_stk);
607606
}
608607

src/rt/rust_task_thread.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,6 @@ rust_task_thread::prepare_c_stack(rust_task *task) {
388388
I(this, !extra_c_stack);
389389
if (!cached_c_stack && !task->have_c_stack()) {
390390
cached_c_stack = create_stack(kernel->region(), C_STACK_SIZE);
391-
prepare_valgrind_stack(cached_c_stack);
392391
}
393392
}
394393

0 commit comments

Comments
 (0)