From 9e18ae639f760d9c655e79baa2880e26b32c54db Mon Sep 17 00:00:00 2001 From: David Goldblatt Date: Wed, 12 Aug 2020 11:00:50 -0700 Subject: [PATCH] Config: safety checks don't imply size checks. The commit introducing size checks accidentally enabled them whenever any safety checks were on. This ends up causing the regression that splitting up the features was intended to avoid. Fix the issue. --- include/jemalloc/internal/jemalloc_preamble.h.in | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/jemalloc/internal/jemalloc_preamble.h.in b/include/jemalloc/internal/jemalloc_preamble.h.in index 4012eb25..d62fee09 100644 --- a/include/jemalloc/internal/jemalloc_preamble.h.in +++ b/include/jemalloc/internal/jemalloc_preamble.h.in @@ -185,8 +185,7 @@ static const bool config_opt_safety_checks = * general safety checks. */ static const bool config_opt_size_checks = -#if defined(JEMALLOC_OPT_SIZE_CHECKS) || defined(JEMALLOC_OPT_SAFETY_CHECKS) \ - || defined(JEMALLOC_DEBUG) +#if defined(JEMALLOC_OPT_SIZE_CHECKS) || defined(JEMALLOC_DEBUG) true #else false