Update hash.c to allow valgrind to always be defined, and support address sanitizer
* into the hashing function, but only at word boundaries. This should be safe,
* but trips up address sanitizers and valgrind.
* This ensures clean valgrind logs in debug mode & the best perf in release */
-#ifndef NDEBUG
+#if !defined(NDEBUG) || defined(ADDRESS_SANITIZER)
+#ifndef VALGRIND
#define VALGRIND
#endif
+#endif
/*
-------------------------------------------------------------------------------
