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.
This commit is contained in:
David Goldblatt 2020-08-12 11:00:50 -07:00 committed by David Goldblatt
parent 8f9e958e1e
commit 9e18ae639f

View File

@ -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