| commit | 633aaff96787db82c06d35baf012de197a1a1902 | [log] [tgz] |
|---|---|---|
| author | Jason Evans <jasone@canonware.com> | Tue Apr 03 08:47:07 2012 -0700 |
| committer | Jason Evans <jasone@canonware.com> | Tue Apr 03 19:25:30 2012 -0700 |
| tree | e8b82632d7ab3ad8439dfecb418e34df4b0495b2 | |
| parent | 48db6167e7bddd26660d7eb3a4ac173284b79948 [diff] [blame] |
Postpone mutex initialization on FreeBSD. Postpone mutex initialization on FreeBSD until after base allocation is safe.
diff --git a/src/jemalloc.c b/src/jemalloc.c index c701922..a6d2df5 100644 --- a/src/jemalloc.c +++ b/src/jemalloc.c
@@ -651,6 +651,11 @@ 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