From b8325f9cb031285585567cdeb1338aeca4185f6c Mon Sep 17 00:00:00 2001 From: Mike Hommey Date: Thu, 12 Apr 2012 15:15:35 +0200 Subject: [PATCH] Call base_boot before chunk_boot0 Chunk_boot0 calls rtree_new, which calls base_alloc, which locks the base_mtx mutex. That mutex is initialized in base_boot. --- src/jemalloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jemalloc.c b/src/jemalloc.c index 8e10c556..1622937d 100644 --- a/src/jemalloc.c +++ b/src/jemalloc.c @@ -626,12 +626,12 @@ malloc_init_hard(void) } } - if (chunk_boot0()) { + if (base_boot()) { malloc_mutex_unlock(&init_lock); return (true); } - if (base_boot()) { + if (chunk_boot0()) { malloc_mutex_unlock(&init_lock); return (true); }