From 259f8ebbfc025eec17695c3d14019f17e414791f Mon Sep 17 00:00:00 2001 From: Jason Evans Date: Fri, 22 Apr 2016 22:21:31 -0700 Subject: [PATCH] Fix arena_choose_hard() regression. This regression was caused by 66cd953514a18477eb49732e40d5c2ab5f1b12c5 (Do not allocate metadata via non-auto arenas, nor tcaches.). --- src/jemalloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jemalloc.c b/src/jemalloc.c index 3bd39c3c..8b744e68 100644 --- a/src/jemalloc.c +++ b/src/jemalloc.c @@ -619,7 +619,7 @@ arena_choose_hard(tsd_t *tsd, bool internal) for (j = 0; j < 2; j++) { if (arena_nthreads_get(arena_get(tsd, choose[j], false), - !!j) == 0 || first_null != narenas_auto) { + !!j) == 0 || first_null == narenas_auto) { /* * Use an unloaded arena, or the least loaded * arena if all arenas are already initialized.