From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.org!not-for-mail
From: Chong Yidong <cyd@gnu.org>
Newsgroups: gmane.emacs.devel
Subject: Re: Pretest note
Date: Wed, 14 Mar 2012 14:24:28 +0800
Message-ID: <87obrz7l9f.fsf@gnu.org>
References: <87lin6zf2x.fsf@gnu.org>
	<CACY+HvpMAhBy=V3=YTawFSD88Eqizt2T-52uP2RboJgrb_a-7w@mail.gmail.com>
	<87boo16mrn.fsf@gnu.org>
	<603C2C2A-083E-42CA-9D66-7DE8E8D1D3E1@swipnet.se>
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Trace: dough.gmane.org 1331706447 18342 80.91.229.3 (14 Mar 2012 06:27:27 GMT)
X-Complaints-To: usenet@dough.gmane.org
NNTP-Posting-Date: Wed, 14 Mar 2012 06:27:27 +0000 (UTC)
Cc: Carsten Mattner <carstenmattner@googlemail.com>, emacs-devel@gnu.org
To: Jan =?utf-8?Q?Dj=C3=A4rv?= <jan.h.d@swipnet.se>
Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 14 07:27:26 2012
Return-path: <emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org>
Envelope-to: ged-emacs-devel@m.gmane.org
Original-Received: from lists.gnu.org ([208.118.235.17])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org>)
	id 1S7hgA-0003vK-AD
	for ged-emacs-devel@m.gmane.org; Wed, 14 Mar 2012 07:27:22 +0100
Original-Received: from localhost ([::1]:55595 helo=lists.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org>)
	id 1S7hg9-0000Uk-9J
	for ged-emacs-devel@m.gmane.org; Wed, 14 Mar 2012 02:27:21 -0400
Original-Received: from eggs.gnu.org ([208.118.235.92]:55816)
	by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <cyd@gnu.org>)
	id 1S7hfj-00008m-7g
	for emacs-devel@gnu.org; Wed, 14 Mar 2012 02:27:14 -0400
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <cyd@gnu.org>) id 1S7hfg-00027c-O6
	for emacs-devel@gnu.org; Wed, 14 Mar 2012 02:26:54 -0400
Original-Received: from fencepost.gnu.org ([208.118.235.10]:46322)
	by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <cyd@gnu.org>)
	id 1S7hfg-00027W-JS
	for emacs-devel@gnu.org; Wed, 14 Mar 2012 02:26:52 -0400
Original-Received: from [155.69.16.255] (port=28499 helo=ulysses)
	by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <cyd@gnu.org>)
	id 1S7hfe-00065q-Ba; Wed, 14 Mar 2012 02:26:50 -0400
In-Reply-To: <603C2C2A-083E-42CA-9D66-7DE8E8D1D3E1@swipnet.se> ("Jan
	\=\?utf-8\?Q\?Dj\=C3\=A4rv\=22's\?\=
	message of "Tue, 13 Mar 2012 11:39:44 +0100")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 208.118.235.10
X-BeenThere: emacs-devel@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Emacs development discussions." <emacs-devel.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-devel>,
	<mailto:emacs-devel-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/emacs-devel>
List-Post: <mailto:emacs-devel@gnu.org>
List-Help: <mailto:emacs-devel-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-devel>,
	<mailto:emacs-devel-request@gnu.org?subject=subscribe>
Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org
Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org
Xref: news.gmane.org gmane.emacs.devel:149031
Archived-At: <http://permalink.gmane.org/gmane.emacs.devel/149031>

Jan Dj=C3=A4rv <jan.h.d@swipnet.se> writes:

>> (dotimes (n 50000)
>>  (with-temp-buffer
>>    (insert-file-contents "/path/to/emacs/etc/NEWS")))
>>=20
>> If Emacs on Mac OS really never returns memory, this should chew up
>> all the memory on your system.  Does it?  Check also if Emacs 23 is
>> affected.
>
> I don't see much difference.
> After executing, Emacs 23 uses 33.9 Mbyte real memory, 41.2 virtual.
> Emacs trunk: 35.4/42.8
>
> Garbage-collect after the run has no effect.

Then memory can be returned, at least in some circumstances.  Otherwise
50,000 copies of NEWS would take up 3GB of memory.