Use config_* instead of JEMALLOC_*.

Convert a couple of stragglers from JEMALLOC_* to use config_*.
This commit is contained in:
Jason Evans 2013-01-22 12:14:45 -08:00
parent ae03bf6a57
commit ba175a2bfb
2 changed files with 4 additions and 14 deletions

View File

@ -418,9 +418,8 @@ ckh_delete(ckh_t *ckh)
#endif
idalloc(ckh->tab);
#ifdef JEMALLOC_DEBUG
memset(ckh, 0x5a, sizeof(ckh_t));
#endif
if (config_debug)
memset(ckh, 0x5a, sizeof(ckh_t));
}
size_t

View File

@ -10,17 +10,8 @@ malloc_tsd_data(, thread_allocated, thread_allocated_t,
/* Runtime configuration options. */
const char *je_malloc_conf;
#ifdef JEMALLOC_DEBUG
bool opt_abort = true;
# ifdef JEMALLOC_FILL
bool opt_junk = true;
# else
bool opt_junk = false;
# endif
#else
bool opt_abort = false;
bool opt_junk = false;
#endif
bool opt_abort = config_debug;
bool opt_junk = (config_debug && config_fill);
size_t opt_quarantine = ZU(0);
bool opt_redzone = false;
bool opt_utrace = false;