Merge branch 'dev-reset' into dev-slice-reset

This commit is contained in:
daanx 2023-04-04 19:18:58 -07:00
commit 940e890dd0

View File

@ -222,6 +222,10 @@ static void test_leak(void) {
#endif
int main(int argc, char** argv) {
#ifndef USE_STD_MALLOC
mi_stats_reset();
#endif
// > mimalloc-test-stress [THREADS] [SCALE] [ITER]
if (argc >= 2) {
char* end;
@ -244,9 +248,6 @@ int main(int argc, char** argv) {
//printf("(reserve huge: %i\n)", res);
//bench_start_program();
#ifndef USE_STD_MALLOC
mi_stats_reset();
#endif
// Run ITER full iterations where half the objects in the transfer buffer survive to the next round.
srand(0x7feb352d);