Skip to content

Commit 859e025

Browse files
committed
rt: Reconfigure the C stack for valgrind each time it's used
1 parent b157f0b commit 859e025

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

src/rt/rust_task_thread.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,6 @@ rust_task_thread::prepare_c_stack(rust_task *task) {
371371
I(this, !extra_c_stack);
372372
if (!cached_c_stack && !task->have_c_stack()) {
373373
cached_c_stack = create_stack(kernel, C_STACK_SIZE);
374-
prepare_valgrind_stack(cached_c_stack);
375374
}
376375
}
377376

src/rt/rust_task_thread.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ rust_task_thread::borrow_c_stack() {
189189
your_stack = cached_c_stack;
190190
cached_c_stack = NULL;
191191
}
192+
prepare_valgrind_stack(your_stack);
192193
return your_stack;
193194
}
194195

0 commit comments

Comments
 (0)