diff options
author | 2022-01-13 15:27:38 +0000 | |
---|---|---|
committer | 2022-01-14 12:29:47 +0000 | |
commit | 37af46385e24afddee1b609d9e30750ae06cb84d (patch) | |
tree | 3abec9cd6a61ddb7730c8bddef9187efedec9ca8 /compiler/optimizing/sharpening.cc | |
parent | bb2643f6ed81872847ee6c45733ff7e25a3f0e90 (diff) |
x86: 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 1.442 0.011
UnsafeCompareAndSetFieldString 1.446 0.009
Bug: 71781600
Test: ART_HEAP_POISONING=true m build-art-host-tests \
&& art/test.py --host -r -t 712-varhandle-invocations --32
Change-Id: I325e1f09d3b4d016d43657604be9a2d5b910e68a
Diffstat (limited to 'compiler/optimizing/sharpening.cc')
0 files changed, 0 insertions, 0 deletions