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

Vladimir Kozlov vladimir.kozlov at oracle.com
Fri Oct 30 06:59:11 UTC 2015


Good.

Thanks,
Vladimir

On 10/30/15 12:13 AM, Konstantin Shefov wrote:
> Hello
>
> 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/
>
> Thanks
> -Konstantin


More information about the hotspot-compiler-dev mailing list