This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Broken malloc initialization?



> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]