From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Mikael Djurfeldt Newsgroups: gmane.lisp.guile.devel Subject: Re: [pthreads] performance test using fib.scm Date: Tue, 10 Dec 2002 21:10:37 +0100 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: References: <20021210211010.GB355@gmx.de> Reply-To: djurfeldt@nada.kth.se NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1039554774 23519 80.91.224.249 (10 Dec 2002 21:12:54 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 10 Dec 2002 21:12:54 +0000 (UTC) Cc: djurfeldt@nada.kth.se 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 18LrgQ-00066q-01 for ; Tue, 10 Dec 2002 22:12:51 +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 18Lreh-0003Nn-02 for guile-devel@m.gmane.org; Tue, 10 Dec 2002 16:11:03 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18LreN-0003N6-00 for guile-devel@gnu.org; Tue, 10 Dec 2002 16:10:43 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18LreL-0003Mf-00 for guile-devel@gnu.org; Tue, 10 Dec 2002 16:10:42 -0500 Original-Received: from gnudist.gnu.org ([199.232.41.7]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18LrPK-0000QE-01 for guile-devel@gnu.org; Tue, 10 Dec 2002 15:55:10 -0500 Original-Received: from kvast.blakulla.net ([213.212.20.77]) by gnudist.gnu.org with esmtp (Exim 4.10.13) id 18LqiI-0003rH-00 for guile-devel@gnu.org; Tue, 10 Dec 2002 15:10:43 -0500 Original-Received: from dyna224-224.nada.kth.se ([130.237.224.224] helo=linnaeus) by kvast.blakulla.net with esmtp (Exim 3.36 #1 (Debian)) id 18LqiF-0004pm-00; Tue, 10 Dec 2002 21:10:39 +0100 Original-Received: from mdj by linnaeus with local (Exim 3.36 #1 (Debian)) id 18LqiD-0005lE-00; Tue, 10 Dec 2002 21:10:37 +0100 Original-To: Wolfgang Jaehrling In-Reply-To: <20021210211010.GB355@gmx.de> (Wolfgang Jaehrling's message of "Tue, 10 Dec 2002 22:10:10 +0100") User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-pc-linux-gnu) 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:1815 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:1815 Wolfgang Jaehrling writes: > 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. 2002-12-10 Mikael Djurfeldt * gc-malloc.c (malloc_mutex): New mutex. (scm_gc_init_malloc): Initialize it. (scm_realloc): Serialize call to realloc (scm_calloc): Same for calloc. Thanks to Wolfgang Jaehrling! (Now we have to make sure all calls to malloc/realloc are made through scm_malloc.) How about "free"? Best regards, Mikael D. _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel