From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Uday S Reddy Newsgroups: gmane.emacs.devel Subject: Re: Memory leaks Date: Mon, 07 Mar 2011 23:01:14 +0000 Message-ID: References: <4D70CF59.4010406@cs.bham.ac.uk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1299539517 16587 80.91.229.12 (7 Mar 2011 23:11:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 7 Mar 2011 23:11:57 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 08 00:11:53 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pwjai-0003x3-8L for ged-emacs-devel@m.gmane.org; Tue, 08 Mar 2011 00:11:52 +0100 Original-Received: from localhost ([127.0.0.1]:33423 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pwjah-00070n-3A for ged-emacs-devel@m.gmane.org; Mon, 07 Mar 2011 18:11:51 -0500 Original-Received: from [140.186.70.92] (port=52755 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PwjQx-0002Uf-NM for emacs-devel@gnu.org; Mon, 07 Mar 2011 18:01:48 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PwjQw-000096-F8 for emacs-devel@gnu.org; Mon, 07 Mar 2011 18:01:47 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:44066) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PwjQw-00008k-9C for emacs-devel@gnu.org; Mon, 07 Mar 2011 18:01:46 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PwjQt-0008HV-81 for emacs-devel@gnu.org; Tue, 08 Mar 2011 00:01:43 +0100 Original-Received: from cpc10-harb6-0-0-cust112.perr.cable.virginmedia.com ([92.232.137.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 08 Mar 2011 00:01:43 +0100 Original-Received: from u.s.reddy by cpc10-harb6-0-0-cust112.perr.cable.virginmedia.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 08 Mar 2011 00:01:43 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 17 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cpc10-harb6-0-0-cust112.perr.cable.virginmedia.com User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:136853 Archived-At: On 3/7/2011 8:33 PM, Andreas Schwab wrote: > Uday S Reddy writes: > >> I have begun to wonder if obarray gets freed after buffer-local-var stops >> pointing to it, say through another setq to buffer-local-var. > > Obarrays are ordinary vectors, that get garbage collected like any other > object. I didn't think the vectors themselves would be in trouble, but rather what is behind the vectors: the buckets, the symbols and so on. Even after the vectors are gone, there could be references to the symbols in other places, could there not? So, it is not entirely clear when all that memory could be collected? Cheers, Uday