@@ -1436,10 +1436,8 @@ gc_collect_increment(PyThreadState *tstate, struct gc_collection_stats *stats)
1436
1436
validate_old (gcstate );
1437
1437
PyGC_Head increment ;
1438
1438
gc_list_init (& increment );
1439
- //fprintf(stderr, "Incremental GC progress %d\n", (int)gcstate->incremental_gc_progress);
1440
1439
Py_ssize_t work_to_do = - gcstate -> incremental_gc_progress ;
1441
1440
Py_ssize_t region_size = 0 ;
1442
- //fprintf(stderr, "Work to do %d\n", (int)work_to_do);
1443
1441
validate_old (gcstate );
1444
1442
if (gc_list_is_empty (oldest )) {
1445
1443
if (gc_list_is_empty (aging )) {
@@ -1486,7 +1484,6 @@ gc_collect_increment(PyThreadState *tstate, struct gc_collection_stats *stats)
1486
1484
add_stats (gcstate , 1 , stats );
1487
1485
}
1488
1486
1489
-
1490
1487
static void
1491
1488
gc_collect_full (PyThreadState * tstate ,
1492
1489
struct gc_collection_stats * stats )
@@ -1519,7 +1516,6 @@ gc_collect_full(PyThreadState *tstate,
1519
1516
add_stats (gcstate , 2 , stats );
1520
1517
}
1521
1518
1522
-
1523
1519
/* This is the main function. Read this to understand how the
1524
1520
* collection process works. */
1525
1521
static void
@@ -2536,7 +2532,7 @@ _Py_RunGC(PyThreadState *tstate)
2536
2532
gcstate -> collecting = 1 ;
2537
2533
struct gc_collection_stats stats = { 0 };
2538
2534
2539
- GC_STAT_ADD (gen , collections , 1 );
2535
+ GC_STAT_ADD (stats_gen , collections , 1 );
2540
2536
2541
2537
invoke_gc_callback (gcstate , "start" , gcstate -> incremental_next , & stats );
2542
2538
if (gcstate -> incremental_next ) {
0 commit comments