Fix the arena selection for oversized allocations.

Use the per-arena oversize_threshold, instead of the global setting.
This commit is contained in:
Qi Wang 2023-06-06 13:37:07 -07:00 committed by Qi Wang
parent 5832ef6589
commit 86eb49b478
4 changed files with 16 additions and 9 deletions

View file

@ -2090,7 +2090,7 @@ malloc_init_narenas(void) {
narenas_auto);
}
narenas_total_set(narenas_auto);
if (arena_init_huge()) {
if (arena_init_huge(a0)) {
narenas_total_inc();
}
manual_arena_base = narenas_total_get();