Commit c9051640 authored by Neil Schemenauer's avatar Neil Schemenauer

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

collected one should be zeroed.
parent 0d3b2fe0
......@@ -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++) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment