Skip to content

Commit a9e7bff

Browse files
committed
Remove incorrect uses of NVALGRIND, Close #1435.
1 parent 44bd8da commit a9e7bff

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

mk/platform.mk

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ CFG_GCCISH_LINK_FLAGS :=
1717
# embedded into the executable, so use a no-op command.
1818
CFG_DSYMUTIL := true
1919

20-
ifeq ($(CFG_VALGRIND),)
21-
CFG_GCCISH_CFLAGS += -DNVALGRIND
22-
endif
23-
2420
ifneq ($(findstring freebsd,$(CFG_OSTYPE)),)
2521
CFG_LIB_NAME=lib$(1).so
2622
CFG_LIB_GLOB=lib$(1)-*.so

src/rt/rust_stack.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,13 @@ register_valgrind_stack(stk_seg *stk) {
1818

1919
void
2020
reuse_valgrind_stack(stk_seg *stk, uint8_t *sp) {
21-
#ifndef NVALGRIND
2221
// Establish that the stack is accessible. This must be done when reusing
2322
// old stack segments, since the act of popping the stack previously
2423
// caused valgrind to consider the whole thing inaccessible.
2524
assert(sp >= stk->data && sp <= (uint8_t*) stk->end
2625
&& "Stack pointer must be inside stack segment");
2726
size_t sz = stk->end - (uintptr_t)sp;
2827
VALGRIND_MAKE_MEM_UNDEFINED(sp, sz);
29-
#endif
3028
}
3129

3230
void

0 commit comments

Comments
 (0)