@@ -1285,7 +1285,6 @@ gc_collect_young(PyThreadState *tstate,
12851285 for (gc = GC_NEXT (young ); gc != young ; gc = GC_NEXT (gc )) {
12861286 count ++ ;
12871287 }
1288- GC_STAT_ADD (0 , objects_queued , count );
12891288 }
12901289#endif
12911290
@@ -1422,7 +1421,6 @@ gc_collect_increment(PyThreadState *tstate, struct gc_collection_stats *stats)
14221421 gc_set_old_space (gc , gcstate -> visited_space );
14231422 increment_size += expand_region_transitively_reachable (& increment , gc , gcstate );
14241423 }
1425- GC_STAT_ADD (1 , objects_queued , region_size );
14261424 PyGC_Head survivors ;
14271425 gc_list_init (& survivors );
14281426 gc_collect_region (tstate , & increment , & survivors , UNTRACK_TUPLES , stats );
@@ -1805,10 +1803,10 @@ _PyGC_Collect(PyThreadState *tstate, int generation, _PyGC_Reason reason)
18051803 _PyErr_SetRaisedException (tstate , exc );
18061804 GC_STAT_ADD (generation , objects_collected , stats .collected );
18071805#ifdef Py_STATS
1808- if (_py_stats ) {
1806+ if (_Py_stats ) {
18091807 GC_STAT_ADD (generation , object_visits ,
1810- _py_stats -> object_stats .object_visits );
1811- _py_stats -> object_stats .object_visits = 0 ;
1808+ _Py_stats -> object_stats .object_visits );
1809+ _Py_stats -> object_stats .object_visits = 0 ;
18121810 }
18131811#endif
18141812 validate_old (gcstate );
0 commit comments