From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Marius Vollmer Newsgroups: gmane.lisp.guile.devel Subject: Re: abort () is scm_gc_sweep () Date: Thu, 13 Nov 2003 00:50:22 +0100 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <87r80d170h.fsf@zagadka.ping.de> References: <20031010133428.GK7199@powergnu.laas.fr> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1068681314 22980 80.91.224.253 (12 Nov 2003 23:55:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 12 Nov 2003 23:55:14 +0000 (UTC) Cc: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Nov 13 00:55:09 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AK4pJ-0001Hy-00 for ; Thu, 13 Nov 2003 00:55:09 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AK5ks-0006Bf-3R for guile-devel@m.gmane.org; Wed, 12 Nov 2003 19:54:38 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AK5iu-0005s9-KJ for guile-devel@gnu.org; Wed, 12 Nov 2003 19:52:36 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AK5iA-0005il-7h for guile-devel@gnu.org; Wed, 12 Nov 2003 19:52:21 -0500 Original-Received: from [195.253.8.218] (helo=mail.dokom.net) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AK5i9-0005iX-OT for guile-devel@gnu.org; Wed, 12 Nov 2003 19:51:49 -0500 Original-Received: from dialin.speedway42.dip164.dokom.de ([195.138.42.164] helo=zagadka.ping.de) by mail.dokom.net with smtp (Exim 3.36 #3) id 1AK4nP-0008PM-00 for guile-devel@gnu.org; Thu, 13 Nov 2003 00:53:12 +0100 Original-Received: (qmail 29262 invoked by uid 1000); 12 Nov 2003 23:50:22 -0000 Original-To: =?iso-8859-1?q?Ludovic_Court=E8s?= In-Reply-To: <20031010133428.GK7199@powergnu.laas.fr> ( =?iso-8859-1?q?Ludovic_Court=E8s's_message_of?= "Fri, 10 Oct 2003 15:34:31 +0200") User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.2 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 Xref: main.gmane.org gmane.lisp.guile.devel:3007 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:3007 Ludovic Courtès writes: > In function scm_gc_sweep () (gc.c:1922) appears the following condition: > > if (scm_mallocated < m) > abort (); > > The comment above the abort () is very clear about why this happens. > However, since the triggering of this abort () can only be due to the > non respect of Guile's programming conventions by the programmer, I > think it would be a good idea to rather use something like > > assert (scm_mallocated < m); > > instead of just abort (). Yes, that would be better. There are a lot of places where we use abort. Maybe most of them could be changed to assertions. So, if someone has a patch... ;-) -- GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3 331E FAF8 226A D5D4 E405 _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel