[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [pthreads] performance test using fib.scm

From: Mikael Djurfeldt
Subject: Re: [pthreads] performance test using fib.scm
Date: Wed, 11 Dec 2002 08:11:50 +0100
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-pc-linux-gnu)

Maciej Stachowiak <address@hidden> writes:

> On 10Dec2002 10:10PM (+0100), Wolfgang Jaehrling wrote:
>> 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?

This is what I would have expected.

Can someone please verify that malloc is reentrant?

Best regards,
Mikael D.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]