diff options
author | Jason Evans <jasone@canonware.com> | 2012-04-03 15:47:07 (GMT) |
---|---|---|
committer | Jason Evans <jasone@canonware.com> | 2012-04-04 02:25:30 (GMT) |
commit | 633aaff96787db82c06d35baf012de197a1a1902 (patch) | |
tree | e8b82632d7ab3ad8439dfecb418e34df4b0495b2 /src/jemalloc.c | |
parent | 48db6167e7bddd26660d7eb3a4ac173284b79948 (diff) | |
download | jemalloc-633aaff96787db82c06d35baf012de197a1a1902.zip jemalloc-633aaff96787db82c06d35baf012de197a1a1902.tar.gz jemalloc-633aaff96787db82c06d35baf012de197a1a1902.tar.bz2 |
Postpone mutex initialization on FreeBSD.
Postpone mutex initialization on FreeBSD until after base allocation is
safe.
Diffstat (limited to 'src/jemalloc.c')
-rw-r--r-- | src/jemalloc.c | 5 |
1 files changed, 5 insertions, 0 deletions
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 @@ 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 |