Skip to content

Commit 64f49f0

Browse files
Write ts_stop at the end of the add_stats to determine that stats properly updated
1 parent 985b47a commit 64f49f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/gc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1435,7 +1435,6 @@ add_stats(GCState *gcstate, int gen, struct gc_generation_stats *stats)
14351435
memcpy(cur_stats, prev_stats, sizeof(struct gc_generation_stats));
14361436

14371437
cur_stats->ts_start = stats->ts_start;
1438-
cur_stats->ts_stop = stats->ts_stop;
14391438
cur_stats->heap_size = stats->heap_size;
14401439
cur_stats->work_to_do = stats->work_to_do;
14411440

@@ -1449,6 +1448,7 @@ add_stats(GCState *gcstate, int gen, struct gc_generation_stats *stats)
14491448
cur_stats->objects_not_transitively_reachable += stats->objects_not_transitively_reachable;
14501449

14511450
cur_stats->duration += stats->duration;
1451+
cur_stats->ts_stop = stats->ts_stop;
14521452
}
14531453

14541454
static void

0 commit comments

Comments
 (0)