From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Han-Wen Nienhuys Newsgroups: gmane.lisp.guile.devel Subject: Re: [PATCH] Revise GC asserts. Date: Thu, 11 Sep 2008 12:14:32 -0300 Message-ID: References: <878wu0mp6i.fsf@gnu.org> Reply-To: hanwen@xs4all.nl NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1221146285 16372 80.91.229.12 (11 Sep 2008 15:18:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Sep 2008 15:18:05 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Sep 11 17:18:51 2008 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 1KdnwP-0006Ze-IM for guile-devel@m.gmane.org; Thu, 11 Sep 2008 17:18:42 +0200 Original-Received: from localhost ([127.0.0.1]:40453 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KdnvO-0007v8-OI for guile-devel@m.gmane.org; Thu, 11 Sep 2008 11:17:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kdnu2-0007Sn-Ef for guile-devel@gnu.org; Thu, 11 Sep 2008 11:16:14 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kdnu1-0007SV-1U for guile-devel@gnu.org; Thu, 11 Sep 2008 11:16:14 -0400 Original-Received: from [199.232.76.173] (port=43546 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kdnu0-0007SS-Ia for guile-devel@gnu.org; Thu, 11 Sep 2008 11:16:12 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:51613 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kdnu0-0007ME-8J for guile-devel@gnu.org; Thu, 11 Sep 2008 11:16:12 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Kdnty-0000w4-2l for guile-devel@gnu.org; Thu, 11 Sep 2008 15:16:10 +0000 Original-Received: from 201.80.3.52 ([201.80.3.52]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 11 Sep 2008 15:16:10 +0000 Original-Received: from hanwen by 201.80.3.52 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 11 Sep 2008 15:16:10 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 18 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 201.80.3.52 User-Agent: Thunderbird 2.0.0.16 (X11/20080723) In-Reply-To: <878wu0mp6i.fsf@gnu.org> X-detected-kernel: by monty-python.gnu.org: 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:7670 Archived-At: Ludovic Courtès escreveu: >> * libguile/private-gc.h (nil): introduce scm_i_last_marked_cell_count, >> as a private mechanism for maintaining cell counts. Previous >> versions incremented scm_cells_allocated in an inlined function, so >> loading dynamic objects of older GUILEs would break invariants. > > OTOH, if we are to change the way `scm_cells_allocated' is used and > don't want older code to interfere with that, it's safe the break the > ABI here (we're on `master' after all). If this is our stance, this looks like a good opportunity to take all these variable private, and have people use gc-stats to get the data. Providing direct access to variables is problematic from an API stability point of view. -- Han-Wen Nienhuys - hanwen@xs4all.nl - http://www.xs4all.nl/~hanwen