Skip to content

Commit f8f2ecb

Browse files
committed
fixup
1 parent e11ca65 commit f8f2ecb

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

Doc/library/gc.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ The :mod:`gc` module provides the following functions:
115115

116116
.. versionadded:: 3.4
117117

118-
.. versionchanged:: 3.15
118+
.. versionchanged:: next
119119
Add ``duration``.
120120

121121

@@ -334,7 +334,7 @@ values but should not rebind them):
334334

335335
.. versionadded:: 3.3
336336

337-
.. versionchanged:: 3.14
337+
.. versionchanged:: next
338338
Add "duration".
339339

340340

Python/gc.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1384,7 +1384,6 @@ gc_collect_young(PyThreadState *tstate,
13841384
gc_list_init(&survivors);
13851385
gc_list_set_space(young, gcstate->visited_space);
13861386
gc_collect_region(tstate, young, &survivors, stats);
1387-
stats->visited += gcstate->young.count;
13881387
gc_list_merge(&survivors, visited);
13891388
validate_spaces(gcstate);
13901389
gcstate->young.count = 0;
@@ -1699,7 +1698,6 @@ gc_collect_increment(PyThreadState *tstate, struct gc_collection_stats *stats)
16991698
PyGC_Head survivors;
17001699
gc_list_init(&survivors);
17011700
gc_collect_region(tstate, &increment, &survivors, stats);
1702-
stats->visited += increment_size;
17031701
gc_list_merge(&survivors, visited);
17041702
assert(gc_list_is_empty(&increment));
17051703
gcstate->work_to_do -= increment_size;
@@ -1732,7 +1730,6 @@ gc_collect_full(PyThreadState *tstate,
17321730

17331731
gc_collect_region(tstate, visited, visited,
17341732
stats);
1735-
stats->visited += gcstate->young.count + gcstate->old[0].count + gcstate->old[1].count;
17361733
validate_spaces(gcstate);
17371734
gcstate->young.count = 0;
17381735
gcstate->old[0].count = 0;

0 commit comments

Comments
 (0)