[aarch64-port-dev ] RFR(XS): 8211320: Aarch64: unsafe.compareAndSetByte() and unsafe.compareAndSetShort() c2 intrinsics broken with negative expected value

Stefan Anzinger stefan.anzinger at oracle.com
Wed Oct 24 16:51:12 UTC 2018

On 10/24/18 6:45 PM, Stefan Anzinger wrote:
> I looked recently in this code and wondered, how the lse_cas works for
> 8, and 16 bit values. CAS It does a load with 32 or 64 bits and compares
> these bits. The upper 16 or 24 bits may not be equal and the CAS will
> always fail.
> In short: lse_cas does not work on 8 and 16 bit values.
> Please correct me if I am wrong.
> Stefan

I was just wrong, there is a CAS for 8 and 16, so everything is alright.


More information about the hotspot-compiler-dev mailing list