mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-05 23:19:31 +03:00
merge from master
This commit is contained in:
commit
6f0b35d513
1 changed files with 1 additions and 3 deletions
4
src/os.c
4
src/os.c
|
@ -169,9 +169,7 @@ void _mi_os_init() {
|
||||||
os_page_size = (size_t)result;
|
os_page_size = (size_t)result;
|
||||||
os_alloc_granularity = os_page_size;
|
os_alloc_granularity = os_page_size;
|
||||||
}
|
}
|
||||||
if (mi_option_is_enabled(mi_option_large_os_pages)) {
|
large_os_page_size = 2*MiB; // TODO: can we query the OS for this?
|
||||||
large_os_page_size = 2*MiB;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue