jaotc Miscompilation (original) (raw)

Tianxiao Gu tianxiao.gu at gmail.com
Sun Jan 21 22:05:18 UTC 2018


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 jdk-dev mailing list