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: Spare memory Date: Thu, 14 Jun 2012 08:46:21 +0200 Message-ID: References: <87d353qb0v.fsf@olor.terpri.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1339656401 18519 80.91.229.3 (14 Jun 2012 06:46:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 14 Jun 2012 06:46:41 +0000 (UTC) Cc: BT Templeton , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 14 08:46:39 2012 Return-path: 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 ) id 1Sf3pC-0004bg-Ve for ged-emacs-devel@m.gmane.org; Thu, 14 Jun 2012 08:46:35 +0200 Original-Received: from localhost ([::1]:54675 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sf3pC-00065R-Pf for ged-emacs-devel@m.gmane.org; Thu, 14 Jun 2012 02:46:34 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:49208) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sf3p9-000658-Kr for emacs-devel@gnu.org; Thu, 14 Jun 2012 02:46:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sf3p7-0003br-Ti for emacs-devel@gnu.org; Thu, 14 Jun 2012 02:46:31 -0400 Original-Received: from mail-out.m-online.net ([212.18.0.10]:47902) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sf3p7-0003bD-N1 for emacs-devel@gnu.org; Thu, 14 Jun 2012 02:46:29 -0400 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 3WCb391536z3hhjh; Thu, 14 Jun 2012 08:46:45 +0200 (CEST) Original-Received: from igel.home (ppp-88-217-114-244.dynamic.mnet-online.de [88.217.114.244]) by mail.mnet-online.de (Postfix) with ESMTPA id 3WCb2k2PyDz4KK6k; Thu, 14 Jun 2012 08:46:22 +0200 (CEST) Original-Received: by igel.home (Postfix, from userid 501) id BE779CA2A5; Thu, 14 Jun 2012 08:46:21 +0200 (CEST) X-Yow: If I pull this SWITCH I'll be RITA HAYWORTH!! Or a SCIENTOLOGIST! In-Reply-To: (Stefan Monnier's message of "Wed, 13 Jun 2012 19:12:13 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (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.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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:150942 Archived-At: Stefan Monnier writes: > But I can answer this one: the GC can only be called at a few safe > points, so calling it from memory_full might be unsafe. With the > conservative stack scanning, we can probably safely run the GC in many > more cases, but when using the GCPROs, the only safe spots are when > `eval' can be called. Even without GCPRO it may be unsafe, since GC can compact strings. 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."