[Python-Dev] PyGC_Collect ignores state of `enabled`

Armin Rigo arigo at tunes.org
Thu May 12 09:39:11 EDT 2016


Hi Lukasz,

On 10 May 2016 at 04:13, Łukasz Langa <lukasz at langa.pl> wrote:
> However, because of PyGC_Collect() called in Py_Finalize(), during
> interpreter shutdown the collection is done anyway, Linux does CoW and the
> memory usage spikes. Which is ironic on process shutdown.

Try to call os._exit() to avoid doing all this work on shutdown (after
you have checked that it is indeed not doing anything interesting).


A bientôt,

Armin.


More information about the Python-Dev mailing list