diff options
author | unknown <knielsen@knielsen-hq.org> | 2012-03-22 12:31:09 +0100 |
---|---|---|
committer | unknown <knielsen@knielsen-hq.org> | 2012-03-22 12:31:09 +0100 |
commit | c895e235f39bc491e959393889bbc62623fe7bf9 (patch) | |
tree | f84ab5ee52aad0fabb72103e4a20bf6b99a7786f /include/my_valgrind.h | |
parent | 9584cbe7fcc4ea98598087848f96c5e28c15d1d8 (diff) | |
download | mariadb-git-c895e235f39bc491e959393889bbc62623fe7bf9.tar.gz |
Do not use Valgrind client requests in a normal release build, they have a small but noticable performance impact.
Diffstat (limited to 'include/my_valgrind.h')
-rw-r--r-- | include/my_valgrind.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/my_valgrind.h b/include/my_valgrind.h index 5af3a14cf10..31651f6c3ed 100644 --- a/include/my_valgrind.h +++ b/include/my_valgrind.h @@ -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) |