diff options
author | 2022-01-11 14:31:53 +0000 | |
---|---|---|
committer | 2022-01-14 12:29:47 +0000 | |
commit | bb2643f6ed81872847ee6c45733ff7e25a3f0e90 (patch) | |
tree | 442b651d6623eefd5be4b9f4d940b16d107fcb9d /compiler/driver/compiler_options.h | |
parent | afbb15209f9dd248ceb9a222cd4dd52dc473884a (diff) |
x86_64: 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.333 0.009
UnsafeCompareAndSetFieldString 1.336 0.009
Bug: 71781600
Test: ART_HEAP_POISONING=true m build-art-host-tests \
&& art/test.py --host -r -t 712-varhandle-invocations --64
Change-Id: I19a5dc15304693016c7b93294dafae4a90606cff
Diffstat (limited to 'compiler/driver/compiler_options.h')
0 files changed, 0 insertions, 0 deletions