check commit success for pagemap extension so NULL can be returned instead of faulting (issue #1098)

This commit is contained in:
Daan 2025-06-17 18:05:12 -07:00
parent ac4e3fd177
commit a18b692262
4 changed files with 92 additions and 50 deletions

View file

@ -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)