From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Newsgroups: gmane.lisp.guile.devel Subject: Re: Unordered finalization, SMOBs, finalizers, and mark functions Date: Tue, 10 Mar 2015 08:59:33 +0100 Message-ID: <87oao1qo4a.fsf@gnu.org> References: <87r3uhg98d.fsf@pobox.com> <87wq2xjcnh.fsf@gnu.org> <87r3sxyj80.fsf@pobox.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1425974392 31427 80.91.229.3 (10 Mar 2015 07:59:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 10 Mar 2015 07:59:52 +0000 (UTC) Cc: guile-devel@gnu.org To: Andy Wingo Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Mar 10 08:59:48 2015 Return-path: Envelope-to: guile-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 1YVF4r-0005hH-Va for guile-devel@m.gmane.org; Tue, 10 Mar 2015 08:59:46 +0100 Original-Received: from localhost ([::1]:47022 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVF4p-00043N-U1 for guile-devel@m.gmane.org; Tue, 10 Mar 2015 03:59:43 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56517) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVF4l-000433-Py for guile-devel@gnu.org; Tue, 10 Mar 2015 03:59:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YVF4i-0001I1-HM for guile-devel@gnu.org; Tue, 10 Mar 2015 03:59:39 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:56922) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVF4i-0001Ht-EN for guile-devel@gnu.org; Tue, 10 Mar 2015 03:59:36 -0400 Original-Received: from pluto.bordeaux.inria.fr ([193.50.110.57]:59298 helo=pluto) by fencepost.gnu.org with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1YVF4h-0003mf-J0; Tue, 10 Mar 2015 03:59:35 -0400 X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 20 =?utf-8?Q?Vent=C3=B4se?= an 223 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= 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: <87r3sxyj80.fsf@pobox.com> (Andy Wingo's message of "Mon, 09 Mar 2015 22:05:51 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:17692 Archived-At: Andy Wingo skribis: > On Wed 04 Mar 2015 11:10, ludo@gnu.org (Ludovic Court=C3=A8s) writes: > >> diff --git a/libguile/gc.c b/libguile/gc.c >> index 097cb3d..78999c2 100644 >> --- a/libguile/gc.c >> +++ b/libguile/gc.c >> @@ -609,6 +609,7 @@ scm_storage_prehistory () >> target_free_space_divisor =3D free_space_divisor; >> GC_set_free_space_divisor (free_space_divisor); >> GC_set_finalize_on_demand (1); >> + GC_set_java_finalization (1); >>=20=20 >> GC_INIT (); > > This is the wrong patch :) As you can see in scm_init_guardians() we > actually already call this, and the novelty would be to have not-java > finalization. Oops, sorry for the confusion. Well anyway, that=E2=80=99s the thing to do: test and see what wrecks havoc. Ludo=E2=80=99.