From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Wolfgang Jaehrling Newsgroups: gmane.lisp.guile.devel Subject: Re: [pthreads] performance test using fib.scm Date: Tue, 10 Dec 2002 22:10:10 +0100 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <20021210211010.GB355@gmx.de> References: Reply-To: Wolfgang Jaehrling NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1039550798 6153 80.91.224.249 (10 Dec 2002 20:06:38 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 10 Dec 2002 20:06:38 +0000 (UTC) Cc: guile-devel@gnu.org 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 18LqeL-0001b6-00 for ; Tue, 10 Dec 2002 21:06:37 +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 18LqXm-0003eL-00 for guile-devel@m.gmane.org; Tue, 10 Dec 2002 14:59:50 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18LqXR-0003cf-00 for guile-devel@gnu.org; Tue, 10 Dec 2002 14:59:29 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18LqXQ-0003cE-00 for guile-devel@gnu.org; Tue, 10 Dec 2002 14:59:29 -0500 Original-Received: from mail.gmx.net ([213.165.65.60]) by monty-python.gnu.org with smtp (Exim 4.10.13) id 18LqXP-0003c7-00 for guile-devel@gnu.org; Tue, 10 Dec 2002 14:59:27 -0500 Original-Received: (qmail 13123 invoked by uid 0); 10 Dec 2002 19:59:26 -0000 Original-Received: from dialin-145-254-211-245.arcor-ip.net (HELO kaputt.schrott) (145.254.211.245) by mail.gmx.net (mp004-rz3) with SMTP; 10 Dec 2002 19:59:26 -0000 Original-Received: from wj by kaputt.schrott with local (Exim 3.35 #1 (Debian)) id 18Lrdr-000080-00; Tue, 10 Dec 2002 22:10:11 +0100 Original-To: Mikael Djurfeldt Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.28i 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:1814 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:1814 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. Cheers, GNU/Wolfgang _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel