DescriptionRefine atomic operations for Linux/ARM.
This patch comes from recent discussions from the following
review link:
https://chromiumcodereview.appspot.com/16109010/
In a nutshell:
- Using the "cmp" instruction, instead of "teq" is
better for recent ARM CPUs.
- Fix a tiny typo.
- Fix the ARMv5 implementation of Release_CompareAndSwap()
since the old one could return without performing any
memory barrier when prev_value != old_value.
It's not clear whether the old behaviour is desirable
because client code could naively assume the function
always perform a release operation, even in case of
failure.
BUG=234215
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=211013
Patch Set 1 #Patch Set 2 : remove empty line #
Total comments: 1
Messages
Total messages: 6 (0 generated)
|