[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: Tue, 10 Dec 2002 21:10:37 +0100
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-pc-linux-gnu)

Wolfgang Jaehrling <address@hidden> 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  <address@hidden>

        * 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.

reply via email to

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