mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-05 08:00:30 +00:00
Fix calculation of the number of arenas to use on multi-processor systems.
This commit is contained in:
parent
a02a1efa9f
commit
d8a1377b1b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=155272
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue