You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
>To run without the GraalVM JIT compiler to compare, I can use the flag -XX:-UseJVMCICompiler. JVMCI is the interface between GraalVM and the JVM. You could also compare against your standard JVM as well.
However, in my environment, it doesn't work.
root@taro123:/opt/graalvm-ce-java11-21.3.0/graalvm-ten-things# time java -XX:-UseJVMCICompiler TopTen large.txt
Error: VM option 'UseJVMCICompiler' is experimental and must be enabled via -XX:+UnlockExperimentalVMOptions.
Error: The unlock option must precede 'UseJVMCICompiler'.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
real 0m0.008s
user 0m0.001s
sys 0m0.007s
I think, the below is correct.
** time java -XX:+UnlockExperimentalVMOptions -XX:+UseJVMCICompiler TopTen large.txt **
The below is the successful result for your reference.
Is that just a mistake or caused by my environment , GraalVM(CE) + Ubuntu20?
root@taro123:/opt/graalvm-ce-java11-21.3.0/graalvm-ten-things# time java -XX:+UnlockExperimentalVMOptions -XX:+UseJVMCICompiler TopTen large.txt
sed = 502500
ut = 392500
in = 377500
et = 352500
id = 317500
eu = 317500
eget = 302500
vel = 300000
a = 287500
sit = 282500
real 0m26.024s
user 0m37.151s
sys 0m1.121s
Regards,
The text was updated successfully, but these errors were encountered:
can this be the same $PATH problem as in your other ticket? What does java --version print? I guess you are using a stock JDK here instead of GraalVM (despite being inside the GraalVM folder).
While you are in the graalvm-ce-java11-21.3.0 folder, if your $PATH is not set up properly (containing /opt/graalvm-ce-java11-21.3.0/bin before all other java locations) then probably another (non-GraalVM) java is use. Stock JDK does support the UseJVMCICompiler option, but requires the UnlockExperimentalVMOptions flag in addition.
Sorry, one more question.
In the article(https://medium.com/graalvm/graalvm-ten-things-12d9111f307d ), the following is written.
>To run without the GraalVM JIT compiler to compare, I can use the flag -XX:-UseJVMCICompiler. JVMCI is the interface between GraalVM and the JVM. You could also compare against your standard JVM as well.
However, in my environment, it doesn't work.
I think, the below is correct.
** time java -XX:+UnlockExperimentalVMOptions -XX:+UseJVMCICompiler TopTen large.txt **
The below is the successful result for your reference.
Is that just a mistake or caused by my environment , GraalVM(CE) + Ubuntu20?
Regards,
The text was updated successfully, but these errors were encountered: