From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Marius Vollmer Newsgroups: gmane.lisp.guile.devel Subject: Re: doco scm_remember_upto_1 Date: 22 May 2003 11:42:48 +0200 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: References: <87wugjhowm.fsf@zip.com.au> <87wugjqx1g.fsf@raven.i.defaultvalue.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1053597921 24798 80.91.224.249 (22 May 2003 10:05:21 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 22 May 2003 10:05:21 +0000 (UTC) Cc: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu May 22 12:05:20 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19Imwp-0006Rj-00 for ; Thu, 22 May 2003 12:05:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19Imd2-0008HN-1e for guile-devel@m.gmane.org; Thu, 22 May 2003 05:44:52 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19Imcl-0008Fr-8A for guile-devel@gnu.org; Thu, 22 May 2003 05:44:35 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19Imb5-0007ZK-Nh for guile-devel@gnu.org; Thu, 22 May 2003 05:43:27 -0400 Original-Received: from krusty.dt.e-technik.uni-dortmund.de ([129.217.163.1] helo=mail.dt.e-technik.uni-dortmund.de) by monty-python.gnu.org with esmtp (Exim 4.20) id 19Imb5-0007YO-23 for guile-devel@gnu.org; Thu, 22 May 2003 05:42:51 -0400 Original-Received: from troy.dt.e-technik.uni-dortmund.de (troy.dt.e-technik.uni-dortmund.de [129.217.163.17]) by mail.dt.e-technik.uni-dortmund.de (Postfix) with ESMTP id 579D6A381D; Thu, 22 May 2003 11:42:49 +0200 (CEST) Original-Received: by troy.dt.e-technik.uni-dortmund.de (Postfix, from userid 520) id E6BEDB9B6; Thu, 22 May 2003 11:42:48 +0200 (CEST) Original-To: Rob Browning In-Reply-To: <87wugjqx1g.fsf@raven.i.defaultvalue.org> Original-Lines: 18 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Developers list for Guile, the GNU extensibility library List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:2424 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:2424 Rob Browning writes: > Kevin Ryde writes: > > > In the "Type checking" node of the manual showing the clear_image > > example smob code, should that function have an scm_remember_upto_1 > > just before returning, in order to keep image_smob visible to a > > garbage collect that might run in another thread? Yes, that would be an improvement. As Rob say, you are safe right now, but having one scm_remember_upto_here too many does not hurt. > Marius may need to comment here, but I was under the impression that > at the moment we haven't been trying to write all the code to > accomodate a C-side preemptive GC. Yes, but I'd say that for new code we could be more careful with the scm_remembers. _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel