summaryrefslogtreecommitdiff
path: root/include/my_valgrind.h
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@mariadb.com>2019-05-13 10:08:42 +0000
committerVladislav Vaintroub <wlad@mariadb.com>2019-05-13 10:08:42 +0000
commit0c188d5efc452b576c46270e65b9db4746ee9dfe (patch)
tree77c645440c91916032ab73531940a7ce5c7c7377 /include/my_valgrind.h
parent5c93509aad6aa952c48f078557c86322dfc35692 (diff)
downloadmariadb-git-0c188d5efc452b576c46270e65b9db4746ee9dfe.tar.gz
Make TRASH_FREED_MEMORY a cmake option, similar to SAFEMALLOC
Diffstat (limited to 'include/my_valgrind.h')
-rw-r--r--include/my_valgrind.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/my_valgrind.h b/include/my_valgrind.h
index 575ed46a0ee..e04f1f64ef0 100644
--- a/include/my_valgrind.h
+++ b/include/my_valgrind.h
@@ -48,7 +48,7 @@ https://github.com/google/sanitizers/wiki/AddressSanitizerManualPoisoning */
# define MEM_CHECK_DEFINED(a,len) ((void) 0)
#endif /* HAVE_VALGRIND_MEMCHECK_H */
-#if !defined(DBUG_OFF) || defined(TRASH_FREED_MEMORY)
+#if defined(TRASH_FREED_MEMORY)
#define TRASH_FILL(A,B,C) do { const size_t trash_tmp= (B); MEM_UNDEFINED(A, trash_tmp); memset(A, C, trash_tmp); } while (0)
#else
#define TRASH_FILL(A,B,C) do { MEM_UNDEFINED((A), (B)); } while (0)