This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients pitrou
Date 2009-01-12.13:03:32
SpamBayes Score 0.41937116
Marked as misclassified No
Message-id <1231765413.97.0.063026202194.issue4924@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2009-01-12 13:03:34pitrousetrecipients: + pitrou
2009-01-12 13:03:33pitrousetmessageid: <1231765413.97.0.063026202194.issue4924@psf.upfronthosting.co.za>
2009-01-12 13:03:33pitroulinkissue4924 messages
2009-01-12 13:03:32pitroucreate