[9] RFR 8139385: [TESTBUG]: JVMCI test crashes in constantPoolHandle::constantPoolHandle

Konstantin Shefov konstantin.shefov at oracle.com
Thu Oct 29 16:13:02 UTC 2015


Please review a test bug fix in whitebox.cpp.

The problem with the test (crash) happened because of C++ type "long" on 
Windows 64-bit platforms has length of 32-bit, and when we casted a 
64-bit pointer to "long" we had wrong pointer as a result.

The solution is to cast the pointer to "jlong", which is "signed long 
long" and is always 64-bit.

Tested by test "compiler/jvmci/compilerToVM/GetConstantPoolTest.java "

Bug: https://bugs.openjdk.java.net/browse/JDK-8139385
Webrev: http://cr.openjdk.java.net/~kshefov/8139385/webrev/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/attachments/20151029/075a166c/attachment.html>

More information about the hotspot-compiler-dev mailing list