This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: [libc-alpha] Re: PATCH: Fix ll/sc for mips
- From: Kaz Kylheku <kaz at ashi dot footprints dot net>
- To: Hiroyuki Machida <machida at sm dot sony dot co dot jp>
- Cc: <hjl at lucon dot org>, <macro at ds2 dot pg dot gda dot pl>, <libc-alpha at sources dot redhat dot com>, <linux-mips at oss dot sgi dot com>
- Date: Thu, 31 Jan 2002 20:02:25 -0800 (PST)
- Subject: Re: [libc-alpha] Re: PATCH: Fix ll/sc for mips
On Fri, 1 Feb 2002, Hiroyuki Machida wrote:
> Please note that "sc" may fail even if nobody write the
> variable. (See P.211 "8.4.2 Load-Linked/Sotre-Conditional" of "See
> MIPS RUN" for more detail.)
> So, after your patch applied, compare_and_swap() may fail, even if
> *p is equal to oldval.
I can't think of anything that will break because of this, as long
as the compare_and_swap eventually succeeds on some subsequent trial.
If the atomic operation has to abort for some reason other than *p being
unequal to oldval, that should be cool.