Skip to content

Commit e93c30d

Browse files
gh-137054: remove obsolete counting of objects in young generation under Py_STATS builds (#137055)
1 parent ec02db5 commit e93c30d

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

Python/gc.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1331,15 +1331,6 @@ gc_collect_young(PyThreadState *tstate,
13311331
PyGC_Head *visited = &gcstate->old[gcstate->visited_space].head;
13321332
untrack_tuples(young);
13331333
GC_STAT_ADD(0, collections, 1);
1334-
#ifdef Py_STATS
1335-
{
1336-
Py_ssize_t count = 0;
1337-
PyGC_Head *gc;
1338-
for (gc = GC_NEXT(young); gc != young; gc = GC_NEXT(gc)) {
1339-
count++;
1340-
}
1341-
}
1342-
#endif
13431334

13441335
PyGC_Head survivors;
13451336
gc_list_init(&survivors);

0 commit comments

Comments
 (0)