mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-28 03:13:09 +03:00
Postpone mutex initialization on FreeBSD.
Postpone mutex initialization on FreeBSD until after base allocation is safe.
This commit is contained in:
parent
48db6167e7
commit
633aaff967
3 changed files with 58 additions and 13 deletions
|
|
@ -651,6 +651,11 @@ malloc_init_hard(void)
|
|||
return (true);
|
||||
}
|
||||
|
||||
if (mutex_boot()) {
|
||||
malloc_mutex_unlock(&init_lock);
|
||||
return (true);
|
||||
}
|
||||
|
||||
if (opt_narenas == 0) {
|
||||
/*
|
||||
* For SMP systems, create more than one arena per CPU by
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue