summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2019-01-10 18:47:06 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2019-01-10 18:47:06 +0000
commit10666e1becd1287725d2b3ae0149ef4b1290a368 (patch)
tree17e3f784211e9488e6ff59a5458e2721a435ad32 /lib
parente67e23bf3db3f1582c0ad6c778b2fc617bca20fe (diff)
Move default numer of pools in the multi-threaded case to 8. Various tests
by me and others indicate that it is the optimum.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/stdlib/malloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/stdlib/malloc.c b/lib/libc/stdlib/malloc.c
index 2a1bcfc8b69..e41178d5c56 100644
--- a/lib/libc/stdlib/malloc.c
+++ b/lib/libc/stdlib/malloc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: malloc.c,v 1.258 2019/01/10 18:45:33 otto Exp $ */
+/* $OpenBSD: malloc.c,v 1.259 2019/01/10 18:47:05 otto Exp $ */
/*
* Copyright (c) 2008, 2010, 2011, 2016 Otto Moerbeek <otto@drijf.net>
* Copyright (c) 2012 Matthew Dempsky <matthew@openbsd.org>
@@ -409,7 +409,7 @@ omalloc_init(void)
/*
* Default options
*/
- mopts.malloc_mutexes = 4;
+ mopts.malloc_mutexes = 8;
mopts.malloc_junk = 1;
mopts.malloc_cache = MALLOC_DEFAULT_CACHE;