summaryrefslogtreecommitdiffstats
path: root/jemalloc/src/jemalloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'jemalloc/src/jemalloc.c')
-rw-r--r--jemalloc/src/jemalloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/jemalloc/src/jemalloc.c b/jemalloc/src/jemalloc.c
index aeab140..bf2ace3 100644
--- a/jemalloc/src/jemalloc.c
+++ b/jemalloc/src/jemalloc.c
@@ -775,7 +775,7 @@ MALLOC_OUT:
#endif
#ifndef NO_TLS
- next_arena = 0;
+ next_arena = (narenas > 0) ? 1 : 0;
#endif
/* Allocate and initialize arenas. */