Skip to content

Commit 940ccd8

Browse files
sergey-miryanovpablogsal
authored andcommitted
Write ts_stop at the end of the add_stats to determine that stats properly updated
1 parent 839e613 commit 940ccd8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/gc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1405,14 +1405,14 @@ add_stats(GCState *gcstate, int gen, struct gc_generation_stats *stats)
14051405
memcpy(cur_stats, prev_stats, sizeof(struct gc_generation_stats));
14061406

14071407
cur_stats->ts_start = stats->ts_start;
1408-
cur_stats->ts_stop = stats->ts_stop;
14091408

14101409
cur_stats->collections += 1;
14111410
cur_stats->collected += stats->collected;
14121411
cur_stats->uncollectable += stats->uncollectable;
14131412
cur_stats->candidates += stats->candidates;
14141413

14151414
cur_stats->duration += stats->duration;
1415+
cur_stats->ts_stop = stats->ts_stop;
14161416
}
14171417

14181418
/* This is the main function. Read this to understand how the

0 commit comments

Comments
 (0)