This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: [PATCH] correction for PPC __compare_and_swap
- To: dmehaffy at us dot ibm dot com
- Subject: Re: [PATCH] correction for PPC __compare_and_swap
- From: Geoff Keating <geoffk at geoffk dot org>
- Date: Wed, 9 May 2001 20:30:53 -0700
- CC: libc-alpha at sources dot redhat dot com, brianmc1 at us dot ibm dot com
- References: <85256A48.0006073E.00@D51MTA03.pok.ibm.com>
- Reply-to: Geoff Keating <geoffk at redhat dot com>
> From: dmehaffy@us.ibm.com
> X-Lotus-FromDomain: IBMUS
> cc: libc-alpha@sources.redhat.com, brianmc1@us.ibm.com
> Date: Wed, 9 May 2001 20:08:21 -0500
> Content-Disposition: inline
>
> Geoff,
>
> I'll have Brian tryout your patch with our Java people and see if it solves
> their problem. Meanwhile I will look at seeing if I can come up with a
> patch that doesn't use __compare_and_swap for the lock release. I agree
> that we would like to not change machine independent code but I think we
> will have to change a line or two and we can #ifdef powerpc the code though
> I hope I can find away around that.
The #ifdef should be something like
#ifdef RELEASE_USING_STORE
that is, a generic #define rather than just 'is this powerpc'. I'm
sure other machines have this same property.
--
- Geoffrey Keating <geoffk@geoffk.org>