rename to arena_eager_commit

This commit is contained in:
daanx 2023-04-03 19:57:26 -07:00
parent d22a13c990
commit 33d7503fdb
3 changed files with 4 additions and 4 deletions

View file

@ -299,8 +299,8 @@ void* _mi_arena_alloc_aligned(size_t size, size_t alignment, size_t align_offset
mi_arena_id_t arena_id = 0;
bool arena_commit = _mi_os_has_overcommit();
if (mi_option_get(mi_option_eager_arena_commit) == 1) { arena_commit = true; }
else if (mi_option_get(mi_option_eager_arena_commit) == 0) { arena_commit = false; }
if (mi_option_get(mi_option_arena_eager_commit) == 1) { arena_commit = true; }
else if (mi_option_get(mi_option_arena_eager_commit) == 0) { arena_commit = false; }
if (mi_reserve_os_memory_ex(arena_reserve, arena_commit /* commit */, *large /* allow large*/, false /* exclusive */, &arena_id) == 0) {
p = mi_arena_alloc_in(arena_id, numa_node, size, alignment, commit, large, is_pinned, is_zero, req_arena_id, memid, tld);