File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -943,7 +943,6 @@ void mi_process_init(void) mi_attr_noexcept {
943943 // mi_heap_main_init(); // vs2017 can dynamically re-initialize theap_main
944944 // #endif
945945 if (!mi_atomic_once (& process_init )) return ;
946- _mi_process_is_initialized = true;
947946 _mi_verbose_message ("process init: 0x%zx\n" , _mi_thread_id ());
948947
949948 mi_detect_cpu_features ();
@@ -955,6 +954,7 @@ void mi_process_init(void) mi_attr_noexcept {
955954 mi_heap_main_init (); // before page_map_init so stats are working
956955 _mi_page_map_init (); // todo: this could fail.. should we abort in that case?
957956 mi_thread_init ();
957+ _mi_process_is_initialized = true;
958958
959959 #if defined(_WIN32 ) && defined(MI_WIN_USE_FLS )
960960 // On windows, when building as a static lib the FLS cleanup happens to early for the main thread.
You can’t perform that action at this time.
0 commit comments