Revert "rt: Reconfigure the C stack for valgrind each time it's used"
This reverts commit 859e025652.
This ended up not fixing the '0 bytes lost' problem and has some performance
impact.
This commit is contained in:
@@ -371,6 +371,7 @@ rust_task_thread::prepare_c_stack(rust_task *task) {
|
|||||||
I(this, !extra_c_stack);
|
I(this, !extra_c_stack);
|
||||||
if (!cached_c_stack && !task->have_c_stack()) {
|
if (!cached_c_stack && !task->have_c_stack()) {
|
||||||
cached_c_stack = create_stack(kernel, C_STACK_SIZE);
|
cached_c_stack = create_stack(kernel, C_STACK_SIZE);
|
||||||
|
prepare_valgrind_stack(cached_c_stack);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -189,7 +189,6 @@ rust_task_thread::borrow_c_stack() {
|
|||||||
your_stack = cached_c_stack;
|
your_stack = cached_c_stack;
|
||||||
cached_c_stack = NULL;
|
cached_c_stack = NULL;
|
||||||
}
|
}
|
||||||
prepare_valgrind_stack(your_stack);
|
|
||||||
return your_stack;
|
return your_stack;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user