@@ -1436,10 +1436,8 @@ gc_collect_increment(PyThreadState *tstate, struct gc_collection_stats *stats)
14361436 validate_old (gcstate );
14371437 PyGC_Head increment ;
14381438 gc_list_init (& increment );
1439- //fprintf(stderr, "Incremental GC progress %d\n", (int)gcstate->incremental_gc_progress);
14401439 Py_ssize_t work_to_do = - gcstate -> incremental_gc_progress ;
14411440 Py_ssize_t region_size = 0 ;
1442- //fprintf(stderr, "Work to do %d\n", (int)work_to_do);
14431441 validate_old (gcstate );
14441442 if (gc_list_is_empty (oldest )) {
14451443 if (gc_list_is_empty (aging )) {
@@ -1486,7 +1484,6 @@ gc_collect_increment(PyThreadState *tstate, struct gc_collection_stats *stats)
14861484 add_stats (gcstate , 1 , stats );
14871485}
14881486
1489-
14901487static void
14911488gc_collect_full (PyThreadState * tstate ,
14921489 struct gc_collection_stats * stats )
@@ -1519,7 +1516,6 @@ gc_collect_full(PyThreadState *tstate,
15191516 add_stats (gcstate , 2 , stats );
15201517}
15211518
1522-
15231519/* This is the main function. Read this to understand how the
15241520 * collection process works. */
15251521static void
@@ -2536,7 +2532,7 @@ _Py_RunGC(PyThreadState *tstate)
25362532 gcstate -> collecting = 1 ;
25372533 struct gc_collection_stats stats = { 0 };
25382534
2539- GC_STAT_ADD (gen , collections , 1 );
2535+ GC_STAT_ADD (stats_gen , collections , 1 );
25402536
25412537 invoke_gc_callback (gcstate , "start" , gcstate -> incremental_next , & stats );
25422538 if (gcstate -> incremental_next ) {
0 commit comments