From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.lisp.guile.devel Subject: Re: port-for-each vs lazy sweep Date: Tue, 21 Aug 2007 10:30:24 +1000 Message-ID: <87zm0lu3tr.fsf@zip.com.au> References: <878x88pbcc.fsf@zip.com.au> <87hcmuha1s.fsf@laas.fr> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1187656262 31148 80.91.229.12 (21 Aug 2007 00:31:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 21 Aug 2007 00:31:02 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Aug 21 02:31:00 2007 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1INHe2-0000oe-R9 for guile-devel@m.gmane.org; Tue, 21 Aug 2007 02:30:55 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1INHe4-00060w-9D for guile-devel@m.gmane.org; Mon, 20 Aug 2007 20:30:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1INHe1-00060r-Vs for guile-devel@gnu.org; Mon, 20 Aug 2007 20:30:54 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1INHdz-00060c-Oy for guile-devel@gnu.org; Mon, 20 Aug 2007 20:30:52 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1INHdz-00060Z-FI for guile-devel@gnu.org; Mon, 20 Aug 2007 20:30:51 -0400 Original-Received: from mailout2-7.pacific.net.au ([61.8.2.230] helo=mailout2.pacific.net.au) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1INHdw-0001T6-Uo for guile-devel@gnu.org; Mon, 20 Aug 2007 20:30:49 -0400 Original-Received: from mailproxy1.pacific.net.au (mailproxy1.pacific.net.au [61.8.2.162]) by mailout2.pacific.net.au (Postfix) with ESMTP id 7AB9DC0A8D for ; Tue, 21 Aug 2007 10:30:31 +1000 (EST) Original-Received: from localhost (ppp2411.dyn.pacific.net.au [61.8.36.17]) by mailproxy1.pacific.net.au (Postfix) with ESMTP id 7D9878C24 for ; Tue, 21 Aug 2007 10:30:44 +1000 (EST) Original-Received: from gg by localhost with local (Exim 4.67) (envelope-from ) id 1INHdZ-0002tr-CK for guile-devel@gnu.org; Tue, 21 Aug 2007 10:30:25 +1000 In-Reply-To: <87hcmuha1s.fsf@laas.fr> ("Ludovic =?iso-8859-1?Q?Court=E8s?= =?iso-8859-1?Q?=22's?= message of "Mon, 20 Aug 2007 10:42:07 +0200") User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1 (gnu/linux) X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:6717 Archived-At: ludovic.courtes@laas.fr (Ludovic Court=E8s) writes: > > In the latter case, GC would modify the port table, potentially beneath > the feet of functions that iterate over it, or that cached indices > within the table, things like that. I think you're meant to hold scm_i_port_table_mutex if looking at or modifying the table. Probably have to make sure not to provoke a gc during that, something I think flush-all doesn't ensure. (Maybe ought to rewrite flush-all in terms of port-for-each.) _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel