Broken malloc initialization?
Kaz Kylheku
kaz@ashi.footprints.net
Wed Jul 19 10:34:00 GMT 2000
> 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
More information about the Libc-alpha
mailing list