]> granicus.if.org Git - python/commitdiff
Fix small bug. The count of objects in all generations younger then the
authorNeil Schemenauer <nascheme@enme.ucalgary.ca>
Fri, 28 Jun 2002 19:16:04 +0000 (19:16 +0000)
committerNeil Schemenauer <nascheme@enme.ucalgary.ca>
Fri, 28 Jun 2002 19:16:04 +0000 (19:16 +0000)
collected one should be zeroed.

Modules/gcmodule.c

index e4417c20311cd92a13b37904249457ada527945c..a26adae7d03ed3970e5cc9d00494f81fbbb6d210 100644 (file)
@@ -396,7 +396,7 @@ collect(int generation)
        if (generation+1 < NUM_GENERATIONS)
                generations[generation+1].count += 1;
        for (i = 0; i <= generation; i++)
-               generations[generation].count = 0;
+               generations[i].count = 0;
 
        /* merge younger generations with one we are currently collecting */
        for (i = 0; i < generation; i++) {