Do not use Valgrind client requests in a normal release build, they have a small but noticable performance impact.

This commit is contained in:
unknown 2012-03-22 12:31:09 +01:00
parent 9584cbe7fc
commit c895e235f3

View File

@ -23,7 +23,7 @@
#define IF_VALGRIND(A,B) B
#endif
#if defined(HAVE_VALGRIND)
#if defined(HAVE_VALGRIND) && defined(HAVE_valgrind)
# include <valgrind/memcheck.h>
# define MEM_UNDEFINED(a,len) VALGRIND_MAKE_MEM_UNDEFINED(a,len)
# define MEM_NOACCESS(a,len) VALGRIND_MAKE_MEM_NOACCESS(a,len)