This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: Broken malloc initialization?
- To: Wolfram Gloger <Wolfram dot Gloger at dent dot med dot uni-muenchen dot de>
- Subject: Re: Broken malloc initialization?
- From: Kaz Kylheku <kaz at ashi dot footprints dot net>
- Date: Wed, 19 Jul 2000 10:34:34 -0700 (PDT)
- cc: libc-alpha at Sourceware dot Cygnus dot Com
> Hmm, strange. malloc.c:2715 can only be reached if line 2691 has been
> passed, and the mutex is successfully locked. However,
> pthread_mutex_trylock() is used there, not pthread_mutex_lock(), so
> maybe you just forgot to change that function accordingly WRT the
> spinlock field?
By the way, you are right, I did write a broken __pthread_alt_trylock. It
acquires the spinlock rather than the lock itself. That is now correct for the
regular locks, not for the ``alt'' ones. *SLAP FACE*
Now I have to fix the other breakage: deadlock in linuxthreads/Examples/ex2.c