Skip to content
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