mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-06-22 03:45:39 +03:00
Fix the arena selection for oversized allocations.
Use the per-arena oversize_threshold, instead of the global setting.
This commit is contained in:
parent
5832ef6589
commit
86eb49b478
4 changed files with 16 additions and 9 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue