mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-07 15:59:32 +03:00
merge from dev
This commit is contained in:
commit
a70bd21478
1 changed files with 3 additions and 2 deletions
|
@ -304,10 +304,11 @@ int main(int argc, char** argv) {
|
||||||
#endif
|
#endif
|
||||||
#if !defined(NDEBUG) && !defined(USE_STD_MALLOC)
|
#if !defined(NDEBUG) && !defined(USE_STD_MALLOC)
|
||||||
mi_option_set(mi_option_arena_reserve, 32 * 1024 /* in kib = 32MiB */);
|
mi_option_set(mi_option_arena_reserve, 32 * 1024 /* in kib = 32MiB */);
|
||||||
//mi_option_set(mi_option_purge_delay,10);
|
mi_option_set(mi_option_purge_delay,1);
|
||||||
#endif
|
#endif
|
||||||
#if defined(NDEBUG) && !defined(USE_STD_MALLOC)
|
#if defined(NDEBUG) && !defined(USE_STD_MALLOC)
|
||||||
// mi_option_set(mi_option_purge_delay,-1);
|
// mi_option_set(mi_option_purge_delay,-1);
|
||||||
|
mi_option_set(mi_option_reclaim_on_free, 0);
|
||||||
#endif
|
#endif
|
||||||
#ifndef USE_STD_MALLOC
|
#ifndef USE_STD_MALLOC
|
||||||
mi_stats_reset();
|
mi_stats_reset();
|
||||||
|
@ -350,7 +351,7 @@ int main(int argc, char** argv) {
|
||||||
|
|
||||||
#ifndef USE_STD_MALLOC
|
#ifndef USE_STD_MALLOC
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
mi_debug_show_arenas(true);
|
mi_debug_show_arenas();
|
||||||
mi_collect(true);
|
mi_collect(true);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue