From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.lisp.guile.devel Subject: Re: Mark procedures and LilyPond Date: Fri, 06 Nov 2015 10:05:40 -0500 Message-ID: References: <87vb9ihy6x.fsf@igalia.com> <87bnb891t8.fsf@gnu.org> <87ziyspp5d.fsf@pobox.com> <87io5ftij0.fsf_-_@netris.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1446822381 13053 80.91.229.3 (6 Nov 2015 15:06:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Nov 2015 15:06:21 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri Nov 06 16:06:13 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 1Zuiac-0003Pr-JU for guile-devel@m.gmane.org; Fri, 06 Nov 2015 16:06:06 +0100 Original-Received: from localhost ([::1]:39252 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zuiab-00016U-Rk for guile-devel@m.gmane.org; Fri, 06 Nov 2015 10:06:05 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40842) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZuiaT-000161-Ut for guile-devel@gnu.org; Fri, 06 Nov 2015 10:06:01 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZuiaO-0000hq-VG for guile-devel@gnu.org; Fri, 06 Nov 2015 10:05:57 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:51664) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZuiaO-0000gd-OK for guile-devel@gnu.org; Fri, 06 Nov 2015 10:05:52 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZuiaK-0003CD-QN for guile-devel@gnu.org; Fri, 06 Nov 2015 16:05:48 +0100 Original-Received: from 104-222-125-230.cpe.teksavvy.com ([104.222.125.230]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 06 Nov 2015 16:05:48 +0100 Original-Received: from monnier by 104-222-125-230.cpe.teksavvy.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 06 Nov 2015 16:05:48 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 23 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 104-222-125-230.cpe.teksavvy.com User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:0WnCHCF6zJhuVj5jLDbT79v2gtY= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:17999 Archived-At: > __________ __________ > Objects in | | | | > GC-managed | SMOB 1 | | SMOB 2 | > heap |__________| |__________| > | ^ | ^ > .....................|...|.........................|...|.......... > __v___|___ _________ __v___|___ > Objects in | | | STL | | | > normal heap |C++ object|--->|container|-->|C++ object| > (not scanned |__________| |_________| |__________| > by GC) > The SMOB finalizers free the associated C++ objects below them. Now, > suppose that none of the objects above are reachable, so both SMOBs are > queued for finalization. Now suppose that SMOB 2 is finalized first, > thus freeing the C++ object below it. It's clearly wrong for SMOB2's finalizer to free its C++ object here since that object is still reachable from C++ objects. Stefan