mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-12 14:18:42 +03:00
rename to arena_eager_commit
This commit is contained in:
parent
d22a13c990
commit
33d7503fdb
3 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue