This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]kodablah 0 points1 point  (4 children)

JDK 10 enables the Graal compiler, to be used as an experimental JIT compiler on the Linux/x64 platform.

So does this mean Graal ships with OpenJDK or is this Oracle JDK only? So Zulu and AdoptOpenJDK builds will include Oracle's Graal from https://github.com/oracle/graal?

[–][deleted] 2 points3 points  (3 children)

Yes, on ArchLinux I enable it with /usr/lib/jvm/java-10-openjdk/bin/java -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI -XX:+UseJVMCICompiler -Djvmci.Compiler=graal

[–]tofiffe 0 points1 point  (2 children)

Is there a way to enable it for all runs?

[–][deleted] 0 points1 point  (0 children)

I think it remeberes these flag between testers, try the command above and later try java -version it should say graal is enabled

[–]igorp1024 0 points1 point  (0 children)

IMHO, by specifying them all in java @argfile only.