From c3550ff9aed22307abb1593f02a4c8bd1bb0925b Mon Sep 17 00:00:00 2001 From: jasone Date: Sat, 4 Feb 2006 01:11:30 +0000 Subject: Fix calculation of the number of arenas to use on multi-processor systems. --- lib/libc/stdlib/malloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libc') diff --git a/lib/libc/stdlib/malloc.c b/lib/libc/stdlib/malloc.c index ce9e46e..0c7c9cc 100644 --- a/lib/libc/stdlib/malloc.c +++ b/lib/libc/stdlib/malloc.c @@ -4467,7 +4467,7 @@ malloc_init_hard(void) } /* Determine how many arenas to use. */ - narenas = 1; + narenas = ncpus; if (opt_narenas_lshift > 0) narenas <<= opt_narenas_lshift; -- cgit v1.1