8000 GH-108362: Incremental GC implementation by markshannon · Pull Request #116199 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

GH-108362: Incremental GC implementation #116199

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 19 commits into from
Closed
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Remove unused variable
  • Loading branch information
markshannon committed Jan 8, 2024
commit 4666cb1f35c8cf99a5f56dd2ea6a4090670a7c16
3 changes: 1 addition & 2 deletions Python/gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1372,8 +1372,7 @@ expand_region_transitively_reachable(PyGC_Head *container, PyGC_Head *gc, GCStat
static void
completed_cycle(GCState *gcstate)
{
PyGC_Head *not_visited = &gcstate->old[gcstate->visited_space^1].head;
assert(gc_list_is_empty(not_visited));
assert(gc_list_is_empty(&gcstate->old[gcstate->visited_space^1].head));
assert(gc_list_is_empty(&gcstate->young.head));
gcstate->visited_space = flip_old_space(gcstate->visited_space);
if (gcstate->work_to_do > 0) {
Expand Down
0