This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: Races in ARM atomicity.h functions?
- From: Daniel Jacobowitz <drow at false dot org>
- To: Alon Ziv <alonz at emblazesemi dot com>
- Cc: libc-alpha at sources dot redhat dot com
- Date: Wed, 19 May 2004 09:06:35 -0400
- Subject: Re: Races in ARM atomicity.h functions?
- References: <200405191529.55246.alonz@emblazesemi.com>
On Wed, May 19, 2004 at 03:29:55PM +0300, Alon Ziv wrote:
> Hi all,
>
> I had a look at the atomicity functions for ARM (sysdeps/arm/atomicity.h), and
> all of them look to have subtle races in a multi-threaded environment.
>
> At least the most widely used of those (compare_and_swap) seems to be fixable,
> but I'd like to be certain I understand these functions' usage before I touch
> them...
>
> Can anyone enlighten me?
I'm pretty sure you're right. If you look at the list archives for
around Feb. 2003 you can find a prior discussion of the issues. I'm
not sure that they're all fixable without changing the format of an
atomic_t.
--
Daniel Jacobowitz