This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: __lll_mutex_unlock broken on IA64 with nptl?
- From: Ulrich Drepper <drepper at redhat dot com>
- To: "Boehm, Hans" <hans_boehm at hp dot com>
- Cc: "'libc-alpha at sources dot redhat dot com'" <libc-alpha at sources dot redhat dot com>, "'Jakub Jelinek'" <jakub at redhat dot com>, "'Ian Wienand'" <ianw at gelato dot unsw dot edu dot au>, "MOSBERGER, DAVID (HP-PaloAlto,unix3)" <davidm at hpl dot hp dot com>, "'Hans dot Boehm at hp dot com'" <Hans dot Boehm at hp dot com>
- Date: Fri, 09 May 2003 14:20:55 -0700
- Subject: Re: __lll_mutex_unlock broken on IA64 with nptl?
- Organization: Red Hat, Inc.
- References: <75A9FEBA25015040A761C1F74975667D014420B6@hplex4.hpl.hp.com>
-----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-----