[Top][All Lists]

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

Re: [Emacs-diffs] /srv/bzr/emacs/trunk r109890: Do not mark objects from

From: Stefan Monnier
Subject: Re: [Emacs-diffs] /srv/bzr/emacs/trunk r109890: Do not mark objects from deleted buffers, windows and frames.
Date: Thu, 06 Sep 2012 13:37:03 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux)

>> In 99% of the cases, it's easy to distinguish: one can be GC'd and the
>> other can't.
> From GC's point of view; if you look at window pointer and W->hchild,
> W-> vchild and W->buffer are all Qnil, you still don't know whether W
> is recorded in some window configuration object.

If you're looking at W, that means there's a reference to it, and
assuming that window is deleted, I say there's a 99% chance that the
reference to it comes from a window-config.

> Hm... it was definitely wrong for the windows because deleted window
> may be "a little more alive" than deleted buffer or frame; but I still think
> that treating "deleted/killed" object as "dead enough to not
> look inside too much" is good enough for the rest.

Let's do it field-by-field (and by setting to field to NULL/nil, which
is a safer way to get the same result) rather than in one big jump into
the unknown.


reply via email to

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