[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is there any possible memory leak in GC?

From: Stefan Monnier
Subject: Re: Is there any possible memory leak in GC?
Date: Thu, 13 Dec 2007 11:36:47 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux)

> After watching the use of `cons_free_list', I am confused about it.
> `cons_free_list' holds the unmarked cons cells during GC sweeping.
> When `cons' creates new cons cells, it picks any ones in
> `cons_free_list' if possible.  But each time when sweeping happens,
> `cons_free_list' is reset to 0, and its previous value is lost.  Since
> GC can run at any time with `garbage-collect', will this lead to
> memory leak or not?

No, it should not lead to any leak because it will find all the cells
that were still on the cons_free_list and add them back, while sweeping
the cons blocks.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]