RFR(XS): 8211320: Aarch64: unsafe.compareAndSetByte() and unsafe.compareAndSetShort() c2 intrinsics broken with negative expected value

Andrew Dinn adinn at redhat.com
Mon Oct 1 10:43:29 UTC 2018

On 01/10/18 11:09, Roland Westrelin wrote:
> http://cr.openjdk.java.net/~roland/8211320/webrev.00/
> Intrinsics for unsafe.compareAndSetByte() and
> unsafe.compareAndSetShort() don't properly deal with sign extension:
> load exclusive doesn't sign extend loaded value but comparison is done
> with sign extended value.
Looks good.


Andrew Dinn
Senior Principal Software Engineer
Red Hat UK Ltd
Registered in England and Wales under Company Registration No. 03798903
Directors: Michael Cunningham, Michael ("Mike") O'Neill, Eric Shander

More information about the hotspot-compiler-dev mailing list