diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2022-04-25 09:40:40 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2022-04-25 09:40:40 +0300 |
commit | 4faef6e2405f7a42f2f80ee9bfd9b96a5dcc74d8 (patch) | |
tree | ac2f1ab8ffd899b7497617115fa3ccba44509b80 /include | |
parent | 232af0c7bfe0ad7a9a4b199ffca59a3e2acbf48e (diff) | |
download | mariadb-git-4faef6e2405f7a42f2f80ee9bfd9b96a5dcc74d8.tar.gz |
Cleanup: Remove IF_VALGRIND
The purpose of the compress() wrapper my_compress_buffer() was twofold:
silence Valgrind warnings about uninitialized memory access before
zlib 1.2.4, and have PERFORMANCE_SCHEMA instrumentation of some zlib
related memory allocation. Because of PERFORMANCE_SCHEMA, we cannot
trivially replace my_compress_buffer() with compress().
az_open(): Remove a crc32() call. Any CRC of the empty string is 0.
Diffstat (limited to 'include')
-rw-r--r-- | include/my_valgrind.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/include/my_valgrind.h b/include/my_valgrind.h index a24ad597d36..dfe2c3db7b3 100644 --- a/include/my_valgrind.h +++ b/include/my_valgrind.h @@ -83,12 +83,6 @@ https://github.com/google/sanitizers/wiki/AddressSanitizerManualPoisoning */ # define MSAN_STAT_WORKAROUND(st) ((void) 0) #endif /* __has_feature(memory_sanitizer) */ -#ifdef HAVE_valgrind -#define IF_VALGRIND(A,B) A -#else -#define IF_VALGRIND(A,B) B -#endif - #ifdef TRASH_FREED_MEMORY /* _TRASH_FILL() has to call MEM_MAKE_ADDRESSABLE() to cancel any effect of |