From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joe Wells Newsgroups: gmane.emacs.bugs Subject: Re: frames vs. weak hash tables and garbage collection Date: Fri, 28 Sep 2007 15:56:51 +0100 Message-ID: <86k5qazvm4.fsf@macs.hw.ac.uk> References: <86wsvdvmkb.fsf@macs.hw.ac.uk> <86y7fru45n.fsf@macs.hw.ac.uk> <868x6u1g8x.fsf@macs.hw.ac.uk> <874phgo5l2.fsf@ambire.localdomain> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1190991435 26030 80.91.229.12 (28 Sep 2007 14:57:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 28 Sep 2007 14:57:15 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 28 16:57:11 2007 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IbHH5-0001pi-EB for geb-bug-gnu-emacs@m.gmane.org; Fri, 28 Sep 2007 16:57:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IbHH2-0000Cy-5B for geb-bug-gnu-emacs@m.gmane.org; Fri, 28 Sep 2007 10:57:00 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IbHH0-0000A8-7i for bug-gnu-emacs@gnu.org; Fri, 28 Sep 2007 10:56:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IbHGz-00009B-Mf for bug-gnu-emacs@gnu.org; Fri, 28 Sep 2007 10:56:57 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IbHGz-000091-Df for bug-gnu-emacs@gnu.org; Fri, 28 Sep 2007 10:56:57 -0400 Original-Received: from izanami.macs.hw.ac.uk ([137.195.13.6]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IbHGy-0005Yy-UP for bug-gnu-emacs@gnu.org; Fri, 28 Sep 2007 10:56:57 -0400 Original-Received: from lxultra1.macs.hw.ac.uk ([137.195.27.173]:53978 helo=127.0.0.1) by izanami.macs.hw.ac.uk with smtp (Exim 4.51) id 1IbHGt-0002vD-HN; Fri, 28 Sep 2007 15:56:51 +0100 Original-Received: (nullmailer pid 15339 invoked by uid 1001); Fri, 28 Sep 2007 14:56:51 -0000 In-Reply-To: (Stefan Monnier's message of "Fri\, 28 Sep 2007 10\:34\:00 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:16644 Archived-At: Stefan Monnier writes: > The following message is a courtesy copy of an article > that has been posted to gnu.emacs.bug as well. > >> Can you try stepping thru the function sweep_weak_table >> when it operates on this hash table, and see what it does >> when it gets to this line > >> int key_known_to_survive_p = survives_gc_p (HASH_KEY (h, i)); > >> and following lines? > > Please check the gnu.emacs.bug newsgroup (apparently the gateway to the > mailing-list isn't working right) where I explained the cause of the problem: > basically it's kept alive by the "recent input events" array and the > `values' variable. Your explanation doesn't show up in gnu.emacs.bug either. Can you please resend? By the way, great work in tracking the problem down! I suppose this means frames are never being garbage collected at all? -- Joe