merge from dev3

This commit is contained in:
daanx 2024-12-24 20:21:56 -08:00
commit a65742fdf9
5 changed files with 120 additions and 54 deletions

View file

@ -260,9 +260,9 @@ static void test_stress(void) {
#if !defined(NDEBUG) || defined(MI_TSAN)
if ((n + 1) % 10 == 0) {
printf("- iterations left: %3d\n", ITER - (n + 1));
mi_debug_show_arenas(true, false, false);
mi_debug_show_arenas(true);
//mi_collect(true);
//mi_debug_show_arenas(true, false, false);
//mi_debug_show_arenas(true);
}
#endif
}
@ -349,13 +349,13 @@ int main(int argc, char** argv) {
#ifndef USE_STD_MALLOC
#ifndef NDEBUG
//mi_debug_show_arenas(true, true, false);
mi_debug_show_arenas(true, false, false);
mi_collect(true);
mi_debug_show_arenas(true,false,false);
//mi_debug_show_arenas(true);
mi_debug_show_arenas(true);
//mi_collect(true);
//mi_debug_show_arenas(true);
#else
// mi_collect(false);
mi_debug_show_arenas(true,false,false);
//mi_collect(true);
mi_debug_show_arenas(true);
mi_stats_print(NULL);
#endif
#else