mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-04 22:49:32 +03:00
reset stats more early for mstress
This commit is contained in:
parent
8ddf6f96a8
commit
b6a395b5ec
1 changed files with 4 additions and 3 deletions
|
@ -219,6 +219,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;
|
||||
|
@ -241,9 +245,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);
|
||||
|
|
Loading…
Add table
Reference in a new issue