diff options
author | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2002-06-28 19:16:04 (GMT) |
---|---|---|
committer | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2002-06-28 19:16:04 (GMT) |
commit | c9051640f807560b9c8d915f681feedb71083830 (patch) | |
tree | 388b9e17b0eb6eda81ea2ff1c20860a377a67bdb /Modules/gcmodule.c | |
parent | 0d3b2fe094fa0ae91d2db3cff2cd5d35f110226f (diff) | |
download | cpython-c9051640f807560b9c8d915f681feedb71083830.zip cpython-c9051640f807560b9c8d915f681feedb71083830.tar.gz cpython-c9051640f807560b9c8d915f681feedb71083830.tar.bz2 |
Fix small bug. The count of objects in all generations younger then the
collected one should be zeroed.
Diffstat (limited to 'Modules/gcmodule.c')
-rw-r--r-- | Modules/gcmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/gcmodule.c b/Modules/gcmodule.c index e4417c2..a26adae 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++) { |