__lll_mutex_unlock broken on IA64 with nptl?
Ulrich Drepper
drepper@redhat.com
Fri May 9 21:21:00 GMT 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
[Fold your lines, these hundreds-of-character lines are not nice.]
Boehm, Hans wrote:
> AFAICT, the implementation of __lll_mutex_unlock and hence pthread_mutex_unlock is currently broken on IA64.
Not unexpected. Nobody cared to fix it yet, though. The main problem
is that atomic_exchange should really be atomic_exchange_acq and
atomic_exchange_rel (just like the cmpxchg code). Then the correct
variant can be used in the right place. For lll_mutex_unlock it would
be atomic_exchange_rel.
So, if you provide an implementation for both atomic_exchange_acq (the
current should be fine) and atomic_exchange_rel I'll put it in. The
_acq variant isn't currently used but still. If implementing the _rel
variant means adding a memory barrier, fine, let's just do it.
- --
- --------------. ,-. 444 Castro Street
Ulrich Drepper \ ,-----------------' \ Mountain View, CA 94041 USA
Red Hat `--' drepper at redhat.com `---------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+vBu32ijCOnn/RHQRAig0AJ9uQkMW34QjsW+P8Fq4201Tp/kUUwCfWd2Q
t4ErA6GdkiFeXEvWxzVLN50=
=LNck
-----END PGP SIGNATURE-----
More information about the Libc-alpha
mailing list