jaotc Miscompilation
Igor Veresov
igor.veresov at oracle.com
Mon Jan 22 00:36:54 UTC 2018
Doesn’t seem to reproduce for me with jdk10 (on macOS). Tianxiao, could you please try an early build of jdk10 to see if there is still a problem?
igor
> On Jan 21, 2018, at 3:11 PM, Tobias Hartmann <tobias.hartmann at oracle.com> wrote:
>
> [Adding hotspot-compiler-dev]
>
> On 21.01.2018 14:05, Tianxiao Gu wrote:
>> Hi All,
>>
>> I found a mis-compilation bug that can be reproduced in the master of
>> OpenJDK 9 (http://hg.openjdk.java.net/jdk9/jdk9/) and the latest Oracle JDK
>> 9.0.4+11.
>>
>> Can anyone help me to report this bug to developers of OpenJDK 9?
>>
>> Description:
>>
>> The AOT mode triggers a NegativeArraySizeException while the default mode
>> exits normally.
>>
>> Input: C0.class (via Google Drive):
>>
>> https://drive.google.com/open?id=17jN-4KFrs-apHlr2jkcDmP4OdA0ophWN
>>
>> Reproduce Steps:
>>
>> t@~/Projects/JVMTesting/bugs/20180120224049 *>>> *../../jdk-9.0.4/bin/jaotc
>> --output C0.so C0
>>
>> t@~/Projects/JVMTesting/bugs/20180120224049 *>>> *../../jdk-9.0.4/bin/java
>> -XX:AOTLibrary=./C0.so C0
>>
>> Exception in thread "main" java.lang.NegativeArraySizeException
>>
>> at C0.main(Unknown Source)
>>
>> t@~/Projects/JVMTesting/bugs/20180120224049 *>>> *../../jdk-9.0.4/bin/java
>> C0
>>
>> t@~/Projects/JVMTesting/bugs/20180120224049 *>>> *echo $?
>>
>> 0
>>
>> t@~/Projects/JVMTesting/bugs/20180120224049 *>>> *../../jdk-9.0.4/bin/java
>> --version
>>
>> java 9.0.4
>>
>> Java(TM) SE Runtime Environment (build 9.0.4+11)
>>
>> Java HotSpot(TM) 64-Bit Server VM (build 9.0.4+11, mixed mode)
>>
>> t@~/Projects/JVMTesting/bugs/20180120224049 *>>> *../../jdk-9.0.4/bin/jaotc
>> --version
>>
>> jaotc 9.0.4+11
>>
>> t@~/Projects/JVMTesting/bugs/20180120224049 *>>> *
>>
More information about the hotspot-compiler-dev
mailing list