Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Commit

Permalink
[mimalloc] disable statistics writing after exiting WinMain
Browse files Browse the repository at this point in the history
This will get rid of the problem on Linux when trying to write statistics to static path that contains random bits after exiting the main
  • Loading branch information
q4a committed May 8, 2022
1 parent c729a65 commit 7371268
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/apps/engine/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR szCmdLine,
}
mi_register_output(mimalloc_fun, nullptr);
mi_option_set(mi_option_show_errors, 1);
mi_option_set(mi_option_show_stats, 1);
mi_option_set(mi_option_show_stats, 0);
mi_option_set(mi_option_eager_commit, 1);
mi_option_set(mi_option_eager_region_commit, 1);
mi_option_set(mi_option_large_os_pages, 1);
Expand Down

0 comments on commit 7371268

Please sign in to comment.