[Top][All Lists]

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

Re: GC and stack marking

From: Eli Zaretskii
Subject: Re: GC and stack marking
Date: Mon, 19 May 2014 22:14:38 +0300

> Date: Mon, 19 May 2014 11:47:28 -0700
> From: Paul Eggert <address@hidden>
> CC: Fabrice Popineau <address@hidden>
> On 05/19/2014 09:31 AM, Eli Zaretskii wrote:
> > is it possible that a Lisp object which is no longer referenced by anything 
> > won't be GC'ed because it is marked by mark_stack due to some kind of 
> > coincidence?
> Yes.  Normally Emacs uses a conservative approach, which means it 
> occasionally does not collect something that is in fact garbage.  See, 
> for example, 
> <https://www.gnu.org/software/guile/manual/html_node/Conservative-GC.html>.

Thanks for confirming.  I couldn't explain what I saw in the debugger
except as such a coincidence.

> > how can we make sure this hash-table indeed gets GC'd before we dump Emacs?
> >
> We could have the garbage collector treat purify-flag specially, I suppose.

I'm not sure I understand the suggestion.  Can you elaborate?

reply via email to

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