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.
This commit is contained in:
Mike Hommey 2012-04-12 15:15:35 +02:00 committed by Jason Evans
parent 83c324acd8
commit b8325f9cb0

View File

@ -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);
}