Skip to content

Commit

Permalink
[GR-15458] Libgraal jdk13 initial changes.
Browse files Browse the repository at this point in the history
PullRequest: graal/3600
  • Loading branch information
bobvandette committed May 29, 2019
2 parents 57fa7b1 + 3546eb5 commit f172715
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
9 changes: 6 additions & 3 deletions compiler/mx.compiler/suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -1840,7 +1840,8 @@
"org.graalvm.compiler.truffle.common.hotspot.libgraal",
],
"checkstyle" : "org.graalvm.compiler.graph",
"javaCompliance" : "8",
"javaCompliance" : "8+",
"javaVersionExclusion" : "11",
"annotationProcessors" : [
"truffle:TRUFFLE_DSL_PROCESSOR",
],
Expand All @@ -1861,7 +1862,8 @@
"org.graalvm.compiler.truffle.compiler.hotspot.TruffleCallBoundaryInstrumentationFactory",
],
"checkstyle" : "org.graalvm.compiler.graph",
"javaCompliance" : "8",
"javaCompliance" : "8+",
"javaVersionExclusion" : "11",
"annotationProcessors" : [
"GRAAL_OPTIONS_PROCESSOR",
"TRUFFLE_LIBGRAAL_PROCESSOR",
Expand All @@ -1878,7 +1880,8 @@
"org.graalvm.compiler.truffle.common.hotspot.libgraal",
],
"checkstyle" : "org.graalvm.compiler.graph",
"javaCompliance" : "8",
"javaCompliance" : "8+",
"javaVersionExclusion" : "11",
"workingSets" : "Graal,Truffle",
},

Expand Down
7 changes: 5 additions & 2 deletions substratevm/mx.substratevm/suite.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
suite = {
"mxversion": "5.218.0",
"mxversion": "5.218.2",
"name": "substratevm",
"version" : "20.0.0-beta.01",
"release" : False,
Expand Down Expand Up @@ -656,7 +656,8 @@
"compiler:GRAAL"
],
"checkstyle" : "com.oracle.svm.hosted",
"javaCompliance": "1.8",
"javaCompliance": "8+",
"javaVersionExclusion": "11",
"annotationProcessors": [
"compiler:GRAAL_NODEINFO_PROCESSOR",
"compiler:GRAAL_REPLACEMENTS_PROCESSOR",
Expand Down Expand Up @@ -812,6 +813,8 @@
"GRAAL_HOTSPOT_LIBRARY": {
"subDir": "src",
"description" : "SubstrateVM HotSpot Graal library support",
"javaCompliance": "8+",
"javaVersionExclusion": "11",
"dependencies": [
"com.oracle.svm.graal.hotspot.libgraal",
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ static class JNIConfigSource implements AutoCloseable {
}
configFilePath = Paths.get("libgraal_jniconfig.txt");

String[] command = {javaExe.toFile().getAbsolutePath(), "-XX:JVMCILibDumpJNIConfig=" + configFilePath};
String[] command = {javaExe.toFile().getAbsolutePath(), "-XX:+UnlockExperimentalVMOptions", "-XX:+EnableJVMCI", "-XX:JVMCILibDumpJNIConfig=" + configFilePath};
quotedCommand = Arrays.asList(command).stream().map(e -> e.indexOf(' ') == -1 ? e : '\'' + e + '\'').collect(Collectors.joining(" "));
ProcessBuilder pb = new ProcessBuilder(command);
pb.redirectErrorStream(true);
Expand Down
2 changes: 1 addition & 1 deletion vm/mx.vm/mx_vm.py
Original file line number Diff line number Diff line change
Expand Up @@ -2120,7 +2120,7 @@ def check_versions(jdk_dir, jdk_version_regex, graalvm_version_regex, expect_gra
match = jdk_version_regex.match(out)
if match is None:
mx.abort("'{}' has an unexpected version string:\n{}\ndoes not match:\n{}".format(jdk_dir, out, jdk_version_regex.pattern))
elif not (match.group('jvm_version').startswith("1.8.0") or match.group('jvm_version').startswith("11")):
elif not (match.group('jvm_version').startswith("1.8.0") or match.group('jvm_version').startswith("11") or match.group('jvm_version').startswith("13")):
mx.abort("GraalVM requires a JDK8 or JDK11 as base-JDK, while the selected JDK ('{}') is '{}':\n{}\n{}.".format(jdk_dir, match.group('jvm_version'), out, check_env))

match = graalvm_version_regex.match(out)
Expand Down

0 comments on commit f172715

Please sign in to comment.