Fix small bug. The count of objects in all generations younger then the

collected one should be zeroed.
This commit is contained in:
Neil Schemenauer 2002-06-28 19:16:04 +00:00
parent 0d3b2fe094
commit c9051640f8
1 changed files with 1 additions and 1 deletions

View 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++) {