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: stumped by scm_car/scm_cdr Date: Thu, 04 Nov 2004 17:49:26 +0100 Message-ID: References: <16724.44532.557784.986630@byrd.xs4all.nl> <87zn3e739g.fsf@zagadka.ping.de> <16725.64761.208412.328474@byrd.xs4all.nl> <16740.33606.743452.458667@byrd.xs4all.nl> <87ekkaxjmm.fsf@zagadka.ping.de> <16741.51307.618175.489403@byrd.xs4all.nl> <16763.40788.741482.351651@byrd.xs4all.nl> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1099587021 19513 80.91.229.6 (4 Nov 2004 16:50:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 4 Nov 2004 16:50:21 +0000 (UTC) Cc: jantien@xs4all.nl, guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Nov 04 17:50:00 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CPkoC-0007jN-00 for ; Thu, 04 Nov 2004 17:50:00 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CPkwL-0000gi-OS for guile-devel@m.gmane.org; Thu, 04 Nov 2004 11:58:25 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CPkwH-0000dT-Te for guile-devel@gnu.org; Thu, 04 Nov 2004 11:58:22 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CPkwG-0000bd-8s for guile-devel@gnu.org; Thu, 04 Nov 2004 11:58:20 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CPkwG-0000bM-3x for guile-devel@gnu.org; Thu, 04 Nov 2004 11:58:20 -0500 Original-Received: from [129.217.163.1] (helo=mail.dt.e-technik.uni-dortmund.de) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CPknf-00087u-P9 for guile-devel@gnu.org; Thu, 04 Nov 2004 11:49:28 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by mail.dt.e-technik.uni-dortmund.de (Postfix) with ESMTP id 320F6420CF; Thu, 4 Nov 2004 17:49:27 +0100 (CET) Original-Received: from mail.dt.e-technik.uni-dortmund.de ([127.0.0.1]) by localhost (krusty [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 07272-02; Thu, 4 Nov 2004 17:49:27 +0100 (CET) Original-Received: from troy.dt.e-technik.uni-dortmund.de (troy.dt.e-technik.uni-dortmund.de [129.217.163.17]) by mail.dt.e-technik.uni-dortmund.de (Postfix) with ESMTP id 0C2CC42021; Thu, 4 Nov 2004 17:49:27 +0100 (CET) Original-Received: by troy.dt.e-technik.uni-dortmund.de (Postfix, from userid 520) id 8BDFDB9A7; Thu, 4 Nov 2004 17:49:26 +0100 (CET) Original-To: hanwen@xs4all.nl In-Reply-To: <16763.40788.741482.351651@byrd.xs4all.nl> (Han-Wen Nienhuys's message of "Sun, 24 Oct 2004 14:25:56 +0200") User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux) X-Virus-Scanned: by amavisd-new at dt.e-technik.uni-dortmund.de 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: main.gmane.org gmane.lisp.guile.devel:4325 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:4325 Han-Wen Nienhuys writes: > marius.vollmer@uni-dortmund.de writes: >> Han-Wen Nienhuys writes: >> >> > I've added a check to scm_cell/scm_double_cell that calls abort() if >> > GC is running. >> >> Well, OK. Another idea is to set the freelists to NULL during GC >> explicitely, thus causing scm_cell etc to call scm_gc_for_newcell >> immediately, and scm_gc_for_newcell could then check whether the GC is >> already running. That would not make scm_cell etc slower for the >> usual case that the GC is in fact not running. Could you try that >> variant? > > I tried to look at this, but scm_i_freelist is now a thread-specific > variable. I'm unsure if and how they should all be set to null or > SCM_EOL. Only the scm_i_freelist of the thread actually doing the garbage collection needs to be set, I think. All other threads are stopped at that time and can't allocate storage. _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel