Do not use Valgrind client requests in a normal release build, they have a small but noticable performance impact.
This commit is contained in:
parent
9584cbe7fc
commit
c895e235f3
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user