Graal JVMCI Problem

Stefan Marr java at stefan-marr.de
Mon Jun 6 11:45:52 UTC 2016


Hi Bahram:


> On 06 Jun 2016, at 11:51, Bahram Yarahmadi <bahram.yarahmadi at gmail.com> wrote:
> 
> I tried to test all arguments that you mentioned but none of them worked
>  `mx -Mjit -v vm -version`  output on my computer is :
> /home/bahram/graal/jvmci/jdk1.8.0_91/product/bin/java -server -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI -XX:+UseJVMCICompiler -d64 -Djvmci.Compiler=graal -Xbootclasspath/p:/home/bahram/graal/truffle/mxbuild/dists/truffle-api.jar -version
> openjdk version "1.8.0_91"
> OpenJDK Runtime Environment (build 1.8.0_91-8u91-b14-0ubuntu4~14.04-b14)
> OpenJDK 64-Bit Server VM (build 25.66-b00-internal-jvmci-0.9-dev, mixed mode)

Ok, so, that seems to be working correctly.

> Since I don’t use truffle framework I changed it to graal-api.jar location

Ehm, I don’t think this is necessary. Just remove the `-Xbootclasspath/p:/home/bahram/graal/truffle/mxbuild/dists/truffle-api.jar` if you don’t want to use truffle. I’d assume that the rest works automatically, without having to add any graal-specific jars.

> I compiled it with mx --vm server build since 'mx build' does not ask me which graal configuration I want to use anymore
> and since I want to use graal just for some special methods which I specify I have to use graal in a hosted mode (server)

With the latest changes, everything is built into the same binary. The flags as above but excluding -XX:+UseJVMCICompiler correspond to the hosted mode.

Best regards
Stefan




-- 
Stefan Marr
Johannes Kepler Universität Linz
http://stefan-marr.de/research/





More information about the graal-dev mailing list