We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 179869a commit ddf814dCopy full SHA for ddf814d
1 file changed
Python/gc.c
@@ -1317,6 +1317,7 @@ gc_collect_young(PyThreadState *tstate,
1317
survivor_count++;
1318
}
1319
1320
+ (void)survivor_count; // Silence compiler warning
1321
gc_list_merge(&survivors, visited);
1322
validate_old(gcstate);
1323
gcstate->young.count = 0;
@@ -1329,12 +1330,14 @@ gc_collect_young(PyThreadState *tstate,
1329
1330
add_stats(gcstate, 0, stats);
1331
1332
1333
+#ifndef NDEBUG
1334
static inline int
1335
IS_IN_VISITED(PyGC_Head *gc, int visited_space)
1336
{
1337
assert(visited_space == 0 || flip_old_space(visited_space) == 0);
1338
return gc_old_space(gc) == visited_space;
1339
1340
+#endif
1341
1342
struct container_and_flag {
1343
PyGC_Head *container;
0 commit comments