Atomic operations on the ARM
Vladimir Serov
vserov@infratel.com
Mon Jan 13 11:13:00 GMT 2003
Hi Richard,
Did You encounter real program failure due to the discussed issue with
atomicity.h on ARM ? Or this is purely logical conclusion that it's unsafe ?
I'm asking this question , becouse mentioned code is only vulnerable to
the double user process scheduling out in the period of one (!)
instruction execution time ( between swp and cmp instructions and
between cmp and swpne instructions ).
This looks impossible for me at least on Linux and uniprocessor. Am i
wrong ?
Regards, Vladimir.
More information about the Gcc-patches
mailing list