Commit c895e235 authored by unknown's avatar unknown

Do not use Valgrind client requests in a normal release build, they have a...

Do not use Valgrind client requests in a normal release build, they have a small but noticable performance impact.
parent 9584cbe7
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
#define IF_VALGRIND(A,B) B #define IF_VALGRIND(A,B) B
#endif #endif
#if defined(HAVE_VALGRIND) #if defined(HAVE_VALGRIND) && defined(HAVE_valgrind)
# include <valgrind/memcheck.h> # include <valgrind/memcheck.h>
# define MEM_UNDEFINED(a,len) VALGRIND_MAKE_MEM_UNDEFINED(a,len) # define MEM_UNDEFINED(a,len) VALGRIND_MAKE_MEM_UNDEFINED(a,len)
# define MEM_NOACCESS(a,len) VALGRIND_MAKE_MEM_NOACCESS(a,len) # define MEM_NOACCESS(a,len) VALGRIND_MAKE_MEM_NOACCESS(a,len)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment