File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -1167,8 +1167,14 @@ static void reset_thread_gc_counts(void) JL_NOTSAFEPOINT
11671167 for (int i = 0 ; i < gc_n_threads ; i ++ ) {
11681168 jl_ptls_t ptls = gc_all_tls_states [i ];
11691169 if (ptls != NULL ) {
1170- memset ( & ptls -> gc_num , 0 , sizeof ( ptls -> gc_num ));
1170+ // don't reset `pool_live_bytes` here
11711171 jl_atomic_store_relaxed (& ptls -> gc_num .allocd , - (int64_t )gc_num .interval );
1172+ jl_atomic_store_relaxed (& ptls -> gc_num .freed , 0 );
1173+ jl_atomic_store_relaxed (& ptls -> gc_num .malloc , 0 );
1174+ jl_atomic_store_relaxed (& ptls -> gc_num .realloc , 0 );
1175+ jl_atomic_store_relaxed (& ptls -> gc_num .poolalloc , 0 );
1176+ jl_atomic_store_relaxed (& ptls -> gc_num .bigalloc , 0 );
1177+ jl_atomic_store_relaxed (& ptls -> gc_num .freecall , 0 );
11721178 }
11731179 }
11741180}
You can’t perform that action at this time.
0 commit comments