rename must_free_whole -> has_partial_free

This commit is contained in:
Daan 2024-05-16 14:41:10 -07:00
parent 81a771161e
commit a38c8dd0f9
6 changed files with 10 additions and 12 deletions

View file

@ -144,7 +144,7 @@ void _mi_prim_mem_init( mi_os_mem_config_t* config )
}
config->large_page_size = 2*MI_MiB; // TODO: can we query the OS for this?
config->has_overcommit = unix_detect_overcommit();
config->must_free_whole = false; // mmap can free in parts
config->has_partial_free = true; // mmap can free in parts
config->has_virtual_reserve = true; // todo: check if this true for NetBSD? (for anonymous mmap with PROT_NONE)
// disable transparent huge pages for this process?