Skip to content

Commit e3ad900

Browse files
GH-119085: Move comment in Python/gc.c to correct place.
In GH-116206, the comment about moving reachable objects to next generation got moved from its original place to a place where there is no code below it. Put the comment back to where the actual movement of reachable objects happens.
1 parent 244c7b8 commit e3ad900

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Python/gc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1710,12 +1710,13 @@ gc_collect_region(PyThreadState *tstate,
17101710
deduce_unreachable(from, &unreachable);
17111711
validate_consistent_old_space(from);
17121712
untrack_tuples(from);
1713+
1714+
/* Move reachable objects to next generation. */
17131715
validate_consistent_old_space(to);
17141716
if (from != to) {
17151717
gc_list_merge(from, to);
17161718
}
17171719
validate_consistent_old_space(to);
1718-
/* Move reachable objects to next generation. */
17191720

17201721
/* All objects in unreachable are trash, but objects reachable from
17211722
* legacy finalizers (e.g. tp_del) can't safely be deleted.

0 commit comments

Comments
 (0)