Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion 3 Python/gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1710,12 +1710,13 @@ gc_collect_region(PyThreadState *tstate,
deduce_unreachable(from, &unreachable);
validate_consistent_old_space(from);
untrack_tuples(from);

/* Move reachable objects to next generation. */
validate_consistent_old_space(to);
if (from != to) {
gc_list_merge(from, to);
}
validate_consistent_old_space(to);
/* Move reachable objects to next generation. */

/* All objects in unreachable are trash, but objects reachable from
* legacy finalizers (e.g. tp_del) can't safely be deleted.
Expand Down
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.