summaryrefslogtreecommitdiffstats
path: root/src/jemalloc.c
diff options
context:
space:
mode:
authorMike Hommey <mh@glandium.org>2012-04-12 13:15:35 (GMT)
committerJason Evans <jasone@canonware.com>2012-04-12 18:42:20 (GMT)
commitb8325f9cb031285585567cdeb1338aeca4185f6c (patch)
treec30306007c8a676163dd1da74098248569143fbd /src/jemalloc.c
parent83c324acd8bd5f32e0ce9b4d3df2f1a0ae46f487 (diff)
downloadjemalloc-b8325f9cb031285585567cdeb1338aeca4185f6c.zip
jemalloc-b8325f9cb031285585567cdeb1338aeca4185f6c.tar.gz
jemalloc-b8325f9cb031285585567cdeb1338aeca4185f6c.tar.bz2
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.
Diffstat (limited to 'src/jemalloc.c')
-rw-r--r--src/jemalloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jemalloc.c b/src/jemalloc.c
index 8e10c55..1622937 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);
}