8000 [3.13] GH-124567: Revert the Incremental GC in 3.13 by Yhg1s · Pull Request #124770 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

[3.13] GH-124567: Revert the Incremental GC in 3.13 #124770

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

Merged
merged 16 commits into from
Sep 30, 2024
Merged
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
Revert "Silence compiler warnings in gc.c (#117422)"
This reverts commit ddf814d.
  • Loading branch information
Yhg1s committed Sep 29, 2024
commit 8f60f05ca8f348b39b116af6c90fb49eac72d746
3 changes: 0 additions & 3 deletions Python/gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1316,7 +1316,6 @@ gc_collect_young(PyThreadState *tstate,
survivor_count++;
}
}
(void)survivor_count; // Silence compiler warning
gc_list_merge(&survivors, visited);
validate_old(gcstate);
gcstate->young.count = 0;
Expand All @@ -1329,14 +1328,12 @@ gc_collect_young(PyThreadState *tstate,
add_stats(gcstate, 0, stats);
}

#ifndef NDEBUG
static inline int
IS_IN_VISITED(PyGC_Head *gc, int visited_space)
{
assert(visited_space == 0 || flip_old_space(visited_space) == 0);
return gc_old_space(gc) == visited_space;
}
#endif

struct container_and_flag {
PyGC_Head *container;
Expand Down
0