mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-06 19:38:41 +03:00
initialize mimalloc options at process load
This commit is contained in:
parent
7ce9c02fd4
commit
2c19388bcf
3 changed files with 9 additions and 0 deletions
|
@ -416,6 +416,7 @@ static void mi_allocator_done() {
|
|||
static void mi_process_load(void) {
|
||||
os_preloading = false;
|
||||
atexit(&mi_process_done);
|
||||
_mi_options_init();
|
||||
mi_process_init();
|
||||
//mi_stats_reset();
|
||||
if (mi_redirected) _mi_verbose_message("malloc is redirected.\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue