[9] RFR(S) 8183401: compiler/jvmci/jdk.vm.ci.code.test/src/jdk/vm/ci/code/test/NativeCallTest.java fails with The VM does not support the minimum JVMCI API version requ

Vladimir Kozlov vladimir.kozlov at oracle.com
Mon Jul 3 21:45:23 UTC 2017

This is fix for P1 in JDK 9.


Contribute by Doug Simon.

After JDK 9 version string changed from "9-ea+174" to "9+176" Graal stop 
working because it does not recognize this version string. It looked for 
"9-ea". As result AOT does not work and all AOT [1] and JVMCI tests fail.

The same problem also exists in JDK 10 but we did not hit it yet because 
we did not test AOT in *promoted* builds yet. Our current jdk 10 builds 
(from JPRT) have "internal" in version string and Graal's version check 
accepts it.

The fix changed jdk 9 version check to "9+" and removed failure exit for 
other versions including 10:

+      } else {
+          // Graal will be compatible with all JDK versions as of 9 GA
+          // until a JVMCI API change is made in a 9u or later release.

And the code is updated (added try{}) to match one in JDK 10 [2].


[1] https://bugs.openjdk.java.net/browse/JDK-8183403

More information about the hotspot-compiler-dev mailing list