jaotc Miscompilation
Fairoz Matte
fairoz.matte at oracle.com
Mon Jan 22 07:12:50 UTC 2018
Hi Tianxiao Gu,
This issue has been already fixed in 10 ea b34, which confirms the below result.
9.0.4 GA - Fail
10 ea b33 - Fail
10 ea b34 - Pass
10 ea b40 -Pass
Updated in https://bugs.openjdk.java.net/browse/JDK-8195838
Thanks,
Fairoz
> -----Original Message-----
> From: Igor Veresov
> Sent: Monday, January 22, 2018 6:07 AM
> To: Tobias Hartmann <tobias.hartmann at oracle.com>
> Cc: hotspot compiler <hotspot-compiler-dev at openjdk.java.net>; jdk-
> dev at openjdk.java.net; Tianxiao Gu <tianxiao.gu at gmail.com>
> Subject: Re: jaotc Miscompilation
>
> 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