summaryrefslogtreecommitdiff
path: root/compiler/optimizing/sharpening.cc
diff options
context:
space:
mode:
author Ulya Trafimovich <skvadrik@google.com> 2022-01-13 15:27:38 +0000
committer Ulya Trofimovich <skvadrik@google.com> 2022-01-14 12:29:47 +0000
commit37af46385e24afddee1b609d9e30750ae06cb84d (patch)
tree3abec9cd6a61ddb7730c8bddef9187efedec9ca8 /compiler/optimizing/sharpening.cc
parentbb2643f6ed81872847ee6c45733ff7e25a3f0e90 (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