arm: Implement Unsafe.compareAndSetObject intrinsic.
The implementation is the same as Unsafe.compareAndSwapObject, as the
latter operation has compare-and-set semantics.
Benchmarks improvements (using benchmarks provided by
https://android-review.googlesource.com/1420959):
benchmark before after
-----------------------------------------------------
UnsafeCompareAndSetStaticFieldString 4.209 0.027
UnsafeCompareAndSetFieldString 4.212 0.025
Bug: 71781600
Bug: 202868177
Test: art/test.py --target -r -t 712-varhandle-invocations
Change-Id: Ib6f071d5bc118018bec36204718ba0089df13302
1 file changed