From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: Memory leaks Date: Tue, 08 Mar 2011 09:57:11 +0100 Message-ID: References: <4D70CF59.4010406@cs.bham.ac.uk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1299574654 4352 80.91.229.12 (8 Mar 2011 08:57:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 8 Mar 2011 08:57:34 +0000 (UTC) Cc: Uday S Reddy , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 08 09:57:29 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 1PwsjR-00020Q-L5 for ged-emacs-devel@m.gmane.org; Tue, 08 Mar 2011 09:57:29 +0100 Original-Received: from localhost ([127.0.0.1]:35783 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PwsjR-0000eU-3I for ged-emacs-devel@m.gmane.org; Tue, 08 Mar 2011 03:57:29 -0500 Original-Received: from [140.186.70.92] (port=34205 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PwsjF-0000di-Rv for emacs-devel@gnu.org; Tue, 08 Mar 2011 03:57:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PwsjE-0004Km-ME for emacs-devel@gnu.org; Tue, 08 Mar 2011 03:57:17 -0500 Original-Received: from mail-out.m-online.net ([212.18.0.10]:34757) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PwsjE-0004Jm-H3 for emacs-devel@gnu.org; Tue, 08 Mar 2011 03:57:16 -0500 Original-Received: from frontend1.mail.m-online.net (frontend1.mail.intern.m-online.net [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 7E789186DEC9; Tue, 8 Mar 2011 09:57:13 +0100 (CET) Original-Received: from localhost (dynscan1.mnet-online.de [192.168.8.164]) by mail.m-online.net (Postfix) with ESMTP id 791EB1C0012D; Tue, 8 Mar 2011 09:57:13 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Original-Received: from mail.mnet-online.de ([192.168.8.180]) by localhost (dynscan1.mail.m-online.net [192.168.8.164]) (amavisd-new, port 10024) with ESMTP id KzdGVuolNSKl; Tue, 8 Mar 2011 09:57:12 +0100 (CET) Original-Received: from hase (ppp-88-217-123-39.dynamic.mnet-online.de [88.217.123.39]) by mail.mnet-online.de (Postfix) with ESMTP; Tue, 8 Mar 2011 09:57:12 +0100 (CET) X-Yow: My polyvinyl cowboy wallet was made in Hong Kong by Montgomery Clift! In-Reply-To: (Stefan Monnier's message of "Mon, 07 Mar 2011 21:35:18 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Received-From: 212.18.0.10 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:136875 Archived-At: Stefan Monnier 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? > > But then you'd have lots of symbols, not lots of vectors. Unless those symbols have lots of vectors as some of their values. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."