Skip to content

Commit fa21e29

Browse files
Move the comment to the right place where it used to be
In pythonGH-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. This PR puts it back where the actual movement of rechable objects happen to the next generation.
1 parent 0142a22 commit fa21e29

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
@@ -1513,12 +1513,13 @@ gc_collect_region(PyThreadState *tstate,
15131513
if (untrack & UNTRACK_DICTS) {
15141514
untrack_dicts(from);
15151515
}
1516+
1517+
/* Move reachable objects to next generation. */
15161518
validate_consistent_old_space(to);
15171519
if (from != to) {
15181520
gc_list_merge(from, to);
15191521
}
15201522
validate_consistent_old_space(to);
1521-
/* Move reachable objects to next generation. */
15221523

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

0 commit comments

Comments
 (0)