Races in ARM atomicity.h functions?
Daniel Jacobowitz
drow@false.org
Wed May 19 13:06:00 GMT 2004
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
More information about the Libc-alpha
mailing list