about summary refs log tree commit diff
path: root/src/rt/rust_stack.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/rt/rust_stack.cpp')
-rw-r--r--src/rt/rust_stack.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/rt/rust_stack.cpp b/src/rt/rust_stack.cpp
index 0522b3b9847..0b44575e0f6 100644
--- a/src/rt/rust_stack.cpp
+++ b/src/rt/rust_stack.cpp
@@ -18,7 +18,6 @@ register_valgrind_stack(stk_seg *stk) {
 
 void
 reuse_valgrind_stack(stk_seg *stk, uint8_t *sp) {
-#ifndef NVALGRIND
     // Establish that the stack is accessible.  This must be done when reusing
     // old stack segments, since the act of popping the stack previously
     // caused valgrind to consider the whole thing inaccessible.
@@ -26,7 +25,6 @@ reuse_valgrind_stack(stk_seg *stk, uint8_t *sp) {
 	   && "Stack pointer must be inside stack segment");
     size_t sz = stk->end - (uintptr_t)sp;
     VALGRIND_MAKE_MEM_UNDEFINED(sp, sz);
-#endif
 }
 
 void