Skip to content

jaotc: org.graalvm.compiler.graph.GraalGraphError #289

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
tianxiaogu opened this issue Jan 25, 2018 · 3 comments
Closed

jaotc: org.graalvm.compiler.graph.GraalGraphError #289

tianxiaogu opened this issue Jan 25, 2018 · 3 comments
Assignees

Comments

@tianxiaogu
Copy link

A generated class (C0.class) triggers the following GraalGraphError by simply invoking jaotc --output C0.so C0.class.

Error: Failed compilation: C0.M0([CLC0;[Ljava/lang/Comparable;[B[Ljava/lang/Double;[FF[Ljava/lang/Short;LC0;)F: \
        org.graalvm.compiler.graph.GraalGraphError: \
        org.graalvm.compiler.debug.GraalError: \
        NormalizeCompareNode connected to \
        org.graalvm.compiler.nodes.calc.IntegerBelowNode$BelowOp@77b378be (int[16777215|0xffffff] 20|NormalizeCompare false)
	        at node: 125||<|

The error may be caused by fcmp. In the generated method M0, a fcmp pushed an int on the stack, which is further used as the operand of the following anewarray.

@dougxc
Copy link
Member

dougxc commented Jan 25, 2018

I cannot reproduce this issue:

dsimon@freddy /m/p/U/d/Downloads> java -version
java version "9"
Java(TM) SE Runtime Environment (build 9+181)
Java HotSpot(TM) 64-Bit Server VM (build 9+181, mixed mode)
dsimon@freddy /m/p/U/d/Downloads> jaotc --output C0.so C0.class
dsimon@freddy /m/p/U/d/Downloads> java -XX:AOTLibrary=./C0.so C0
dsimon@freddy /m/p/U/d/Downloads>

Which JDK 9 version are you using?

@dougxc dougxc self-assigned this Jan 25, 2018
@tianxiaogu
Copy link
Author

Hi Doug, I am sorry for not providing the version info.
The exception is triggered in the head of JDK.
I filed an issue here since the exception (GraalGraphError) seems to belong to the graal project.

$ ./openjdk/jdk/build/linux-x86_64-normal-server-release/jdk/bin/java --version
openjdk 10-internal 2018-03-20
OpenJDK Runtime Environment (build 10-internal+0-adhoc.t.jdk)
OpenJDK 64-Bit Server VM (build 10-internal+0-adhoc.t.jdk, mixed mode)

@dougxc dougxc assigned axel22 and unassigned dougxc Jan 25, 2018
@axel22
Copy link
Member

axel22 commented Feb 3, 2018

This should be fixed in the next version of jaotc:

6ef1baa

@axel22 axel22 closed this as completed Feb 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants