RFR(XS): 8048076 - [TESTBUG] runtime/Unsafe/RangeCheck.java fails with -Xcomp

Christian Tornqvist christian.tornqvist at oracle.com
Wed Jun 25 12:56:45 UTC 2014


Hi everyone,

 

Small fix for an issue with the runtime/Unsafe/RangeCheck.java test, when
run with -Xcomp we don't trigger the assert. The reason for this is the
compiler intrinsic for Unsafe.getObject() (which doesn't have this
check/assert) is used and we don't end up calling the VM function. Simply
added "-XX:-InlineUnsafeOps" to not use the intrinsics. 

 

The old test has the same problem and I don't know why this hasn't shown up
before.

 

Webrev:

http://cr.openjdk.java.net/~ctornqvi/webrev/8048076/webrev.00/

 

Bug:

https://bugs.openjdk.java.net/browse/JDK-8048076

 

Thanks,

Christian



More information about the hotspot-runtime-dev mailing list