From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Maciej Stachowiak Newsgroups: gmane.lisp.guile.devel Subject: Re: [pthreads] performance test using fib.scm Date: Tue, 10 Dec 2002 21:02:20 -0800 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <20021210210220.A24388@noisehavoc.org> References: <20021210211010.GB355@gmx.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1039584941 4922 80.91.224.249 (11 Dec 2002 05:35:41 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 11 Dec 2002 05:35:41 +0000 (UTC) Cc: Mikael Djurfeldt Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18LzX1-0001H8-00 for ; Wed, 11 Dec 2002 06:35:39 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18LzVy-0005Iw-02 for guile-devel@m.gmane.org; Wed, 11 Dec 2002 00:34:34 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18LzVN-00059m-00 for guile-devel@gnu.org; Wed, 11 Dec 2002 00:33:57 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18LzVJ-00054y-00 for guile-devel@gnu.org; Wed, 11 Dec 2002 00:33:55 -0500 Original-Received: from h-64-105-169-114.snvacaid.covad.net ([64.105.169.114] helo=chaos.noisehavoc.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18LzVH-0004xM-00 for guile-devel@gnu.org; Wed, 11 Dec 2002 00:33:52 -0500 Original-Received: from mjs by chaos.noisehavoc.org with local (Exim 3.22 #1 (Debian)) id 18Lz0m-0006ls-00; Tue, 10 Dec 2002 21:02:20 -0800 Original-To: Wolfgang Jaehrling Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20021210211010.GB355@gmx.de>; from pro-linux@gmx.de on Tue, Dec 10, 2002 at 10:10:10PM +0100 Original-cc: guile-devel@gnu.org X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Developers list for Guile, the GNU extensibility library List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:1816 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:1816 On 10Dec2002 10:10PM (+0100), Wolfgang Jaehrling wrote: > On Tue, Dec 10, 2002 at 07:16:04PM +0100, Mikael Djurfeldt wrote: > > Still, for large fibonnaci numbers and large branch depths (many > > threads), Guile often crashes in realloc. That function should be > > thread safe, shouldn't it? > > malloc() in glibc is thread-save, but not reentrant. Since the > behaviour of realloc() is unlikely to differ from malloc() in this > respect, you most certainly have to protect calls to it with a lock. > Huh? Doesn't malloc do it's own locking when modifying global data structures? - Maciej _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel