| 1599 | } |
| 1600 | |
| 1601 | static unsigned |
| 1602 | malloc_narenas_default(void) { |
| 1603 | assert(ncpus > 0); |
| 1604 | /* |
| 1605 | * For SMP systems, create more than one arena per CPU by |
| 1606 | * default. |
| 1607 | */ |
| 1608 | if (ncpus > 1) { |
| 1609 | return ncpus << 2; |
| 1610 | } else { |
| 1611 | return 1; |
| 1612 | } |
| 1613 | } |
| 1614 | |
| 1615 | static percpu_arena_mode_t |
| 1616 | percpu_arena_as_initialized(percpu_arena_mode_t mode) { |
no outgoing calls
no test coverage detected