mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-08-24 00:04:48 +03:00
check commit success for pagemap extension so NULL can be returned instead of faulting (issue #1098)
This commit is contained in:
parent
ac4e3fd177
commit
a18b692262
4 changed files with 92 additions and 50 deletions
|
@ -680,7 +680,7 @@ void mi_process_init(void) mi_attr_noexcept {
|
|||
|
||||
mi_detect_cpu_features();
|
||||
_mi_os_init();
|
||||
_mi_page_map_init();
|
||||
_mi_page_map_init(); // this could fail.. should we abort in that case?
|
||||
mi_heap_main_init();
|
||||
mi_tld_main_init();
|
||||
// the following two can potentially allocate (on freeBSD for locks and thread keys)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue