This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Races in ARM atomicity.h functions?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]