From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?iso-8859-1?Q?Court=E8s?=) Newsgroups: gmane.lisp.guile.devel Subject: Re: Fluids Date: Wed, 03 Mar 2010 14:09:11 +0100 Message-ID: <874okx7ds8.fsf@gnu.org> References: <87eiknx4zl.fsf@gnu.org> <87iq9ez3h6.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1267621768 20023 80.91.229.12 (3 Mar 2010 13:09:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 3 Mar 2010 13:09:28 +0000 (UTC) Cc: guile-devel@gnu.org To: Andy Wingo Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed Mar 03 14:09:24 2010 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.69) (envelope-from ) id 1NmoKI-0003WC-Bg for guile-devel@m.gmane.org; Wed, 03 Mar 2010 14:09:22 +0100 Original-Received: from localhost ([127.0.0.1]:37484 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NmoKH-00027j-J3 for guile-devel@m.gmane.org; Wed, 03 Mar 2010 08:09:21 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NmoKB-00027V-CN for guile-devel@gnu.org; Wed, 03 Mar 2010 08:09:15 -0500 Original-Received: from [140.186.70.92] (port=59783 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NmoK9-00026B-SB for guile-devel@gnu.org; Wed, 03 Mar 2010 08:09:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NmoK8-0002LL-QK for guile-devel@gnu.org; Wed, 03 Mar 2010 08:09:13 -0500 Original-Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:45827) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NmoK8-0002LB-Jx for guile-devel@gnu.org; Wed, 03 Mar 2010 08:09:12 -0500 X-IronPort-AV: E=Sophos;i="4.49,574,1262559600"; d="scan'208";a="45917494" Original-Received: from laptop-147-210-128-170.labri.fr (HELO nixey) ([147.210.128.170]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES128-SHA; 03 Mar 2010 14:09:11 +0100 X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 13 =?iso-8859-1?Q?Vent=F4se?= an 218 de la =?iso-8859-1?Q?R=E9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu In-Reply-To: (Andy Wingo's message of "Wed, 03 Mar 2010 13:29:42 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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:10014 Archived-At: Hi Andy, Andy Wingo writes: > On Wed 03 Mar 2010 00:52, ludo@gnu.org (Ludovic Court=C3=A8s) writes: > >> ludo@gnu.org (Ludovic Court=C3=A8s) writes: >> >>> Andy Wingo writes: >>> >>>> But you can't / shouldn't make a new fluid every time you enter a >>>> `catch', because currently fluids are never garbage collected! We real= ly >>>> need to fix this. I think it's a 1.9 regression. >>> >>> Indeed. We should use a weak vector or some such instead of the current >>> scm_gc_malloc=E2=80=99d array. >> >> Just to clarify: fluids themselves *are* GC=E2=80=99d, but fluid numbers= aren=E2=80=99t >> recycled so ALLOCATED_FLUIDS grows endlessly (1 byte per fluid). > > One word per make-fluid, per thread, right? 1 byte per fluid in ALLOCATED_FLUIDS, plus potentially 1 word per fluid per thread in the dynamic state. > FWIW I don't need fluids to be gc'd any more, though it probably is a > good idea. It surely is. :-) Thanks, Ludo=E2=80=99.