[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [pthreads] performance test using fib.scm
From: |
Maciej Stachowiak |
Subject: |
Re: [pthreads] performance test using fib.scm |
Date: |
Tue, 10 Dec 2002 21:02:20 -0800 |
User-agent: |
Mutt/1.2.5i |
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