We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b157f0b commit 859e025Copy full SHA for 859e025
src/rt/rust_task_thread.cpp
@@ -371,7 +371,6 @@ rust_task_thread::prepare_c_stack(rust_task *task) {
371
I(this, !extra_c_stack);
372
if (!cached_c_stack && !task->have_c_stack()) {
373
cached_c_stack = create_stack(kernel, C_STACK_SIZE);
374
- prepare_valgrind_stack(cached_c_stack);
375
}
376
377
src/rt/rust_task_thread.h
@@ -189,6 +189,7 @@ rust_task_thread::borrow_c_stack() {
189
your_stack = cached_c_stack;
190
cached_c_stack = NULL;
191
192
+ prepare_valgrind_stack(your_stack);
193
return your_stack;
194
195
0 commit comments