On lun, jui 28, 2008 at 09:28:09 +0000, Petr Salinger wrote: > > __libc_setlocale_lock is defined differently on different places, > it have been changed into rwlock in intl and locale subdirs, > but it remains plain lock in > > time/alt_digit.c > time/era.c > wcsmbs/wcsmbsload.c > > Also the order of unlocking is not reverse order of locking order > w.r.t __libc_setlocale_lock and nl_state. > > So it might help to move __libc_rwlock_rdlock(__libc_setlocale_lock) > after __libc_rwlock_rdlock(_nl_state_lock) in intl/dcigettext.c > and transform remaining __libc_setlocale_lock into rwlock. > > But none of these bugs should be hppa specific.
Well I'm not surprised, hppa is one of the sole architecture still using linuxthreads, and probably rwlock/mutexes are different enough so that seeing one of them like the other makes odd things, whereas NPTL has some kind of overlapping semantics on both that if it doesn't do the right thing, doesn't break mutexes too much ;) (I'm just guessing the the overlapping bits, but I really mean that hppa *is* different wrt locking). -- ·O· Pierre Habouzit ··O [EMAIL PROTECTED] OOO http://www.madism.org
pgpGE7CIsluTH.pgp
Description: PGP signature