From 3bd6d8e41d524737845949c44bd4961b0930965c Mon Sep 17 00:00:00 2001 From: Jason Evans Date: Mon, 6 Feb 2017 12:54:41 -0800 Subject: [PATCH] Conditianalize lg_tcache_max use on JEMALLOC_TCACHE. --- test/unit/decay.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/unit/decay.c b/test/unit/decay.c index 4d172a54..fc8fabcf 100644 --- a/test/unit/decay.c +++ b/test/unit/decay.c @@ -1,6 +1,10 @@ #include "test/jemalloc_test.h" -const char *malloc_conf = "decay_time:1,lg_tcache_max:0"; +const char *malloc_conf = "decay_time:1" +#ifdef JEMALLOC_TCACHE + ",lg_tcache_max:0" +#endif + ; static nstime_monotonic_t *nstime_monotonic_orig; static nstime_update_t *nstime_update_orig;