diff --git a/jemalloc/src/jemalloc.c b/jemalloc/src/jemalloc.c index aeab1408..bf2ace39 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. */