[PATCH] Call base_boot before chunk_boot0
Mike Hommey
mh+jemalloc at glandium.org
Thu Apr 12 06:15:35 PDT 2012
From: Mike Hommey <mh at glandium.org>
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 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);
}
--
1.7.9.5
More information about the jemalloc-discuss
mailing list