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:
parent
83c324acd8
commit
b8325f9cb0
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user