From c9051640f807560b9c8d915f681feedb71083830 Mon Sep 17 00:00:00 2001 From: Neil Schemenauer Date: Fri, 28 Jun 2002 19:16:04 +0000 Subject: [PATCH] Fix small bug. The count of objects in all generations younger then the collected one should be zeroed. --- Modules/gcmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/gcmodule.c b/Modules/gcmodule.c index e4417c2031..a26adae7d0 100644 --- a/Modules/gcmodule.c +++ b/Modules/gcmodule.c @@ -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++) { -- 2.50.1