[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: frames vs. weak hash tables and garbage collection
From: |
Stefan Monnier |
Subject: |
Re: frames vs. weak hash tables and garbage collection |
Date: |
Fri, 28 Sep 2007 12:27:20 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux) |
> Your explanation doesn't show up in gnu.emacs.bug either. Can you
> please resend?
Hmm... not sure what's going on. There's not much more to send.
> By the way, great work in tracking the problem down!
Thanks.
> I suppose this means frames are never being garbage collected at all?
Not at all: the array of recent input events (as the name implies) only keep
recent events, so after some number of events (300, more precisely) the
reference disappears, making it possible to collect the frame.
The reference from `values' is just due to the fact that you run
`reproduce-bug' from M-: and that its return value contains the frame, so
it's a rather unusual circumstance.
But it seems that `values' is never flushed, so it is a source of leaks.
We should probably fix it (I'd remove it since almost noone even knows that
it exists, but I guess Richard uses it once in a blue moon).
Stefan
- Re: frames vs. weak hash tables and garbage collection, Thien-Thi Nguyen, 2007/09/01
- Re: frames vs. weak hash tables and garbage collection, Thien-Thi Nguyen, 2007/09/01
- Re: frames vs. weak hash tables and garbage collection, Joe Wells, 2007/09/25
- Re: frames vs. weak hash tables and garbage collection, Glenn Morris, 2007/09/27
- Re: frames vs. weak hash tables and garbage collection, Thien-Thi Nguyen, 2007/09/27
- Re: frames vs. weak hash tables and garbage collection, Richard Stallman, 2007/09/27
- Message not available
- Re: frames vs. weak hash tables and garbage collection, Stefan Monnier, 2007/09/28
- Re: frames vs. weak hash tables and garbage collection, Joe Wells, 2007/09/28
- Re: frames vs. weak hash tables and garbage collection,
Stefan Monnier <=
- Re: frames vs. weak hash tables and garbage collection, Joe Wells, 2007/09/28
- Re: frames vs. weak hash tables and garbage collection, Stefan Monnier, 2007/09/28
- Re: frames vs. weak hash tables and garbage collection, Joe Wells, 2007/09/28
- Re: frames vs. weak hash tables and garbage collection, Richard Stallman, 2007/09/29
- Re: frames vs. weak hash tables and garbage collection, Joe Wells, 2007/09/29
- Re: frames vs. weak hash tables and garbage collection, Stefan Monnier, 2007/09/29
- RE: frames vs. weak hash tables and garbage collection, Drew Adams, 2007/09/29
- Re: frames vs. weak hash tables and garbage collection, Richard Stallman, 2007/09/30