Message79673
I haven't verified this through any test (actually I'm wondering how to
deterministically reproduce it), but logically there are cases where
gc.collect() (and, similarly, PyGC_Collect()) won't work as advertised.
Specifically, when the GC is asked to collect a given generation but a
younger generation is already being collected, collect() will simply
notice this and return 0. However, only the younger generation will have
been collected, not the generation asked by the user.
It wouldn't take too much effort to make gc.collect() and PyGC_Collect()
truely deterministic. |
|
Date |
User |
Action |
Args |
2009-01-12 13:03:34 | pitrou | set | recipients:
+ pitrou |
2009-01-12 13:03:33 | pitrou | set | messageid: <1231765413.97.0.063026202194.issue4924@psf.upfronthosting.co.za> |
2009-01-12 13:03:33 | pitrou | link | issue4924 messages |
2009-01-12 13:03:32 | pitrou | create | |
|