Skip to content

Commit 2f7d34f

Browse files
author
Vladimir Kozlov
committed
8255616: Disable AOT and Graal in Oracle OpenJDK
Reviewed-by: iignatyev, vlivanov, iveresov, ihse
1 parent 0e19ded commit 2f7d34f

File tree

4 files changed

+25
-15
lines changed

4 files changed

+25
-15
lines changed

make/conf/jib-profiles.js

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,8 @@ var getJibProfilesCommon = function (input, data) {
251251
configure_args: concat("--enable-jtreg-failure-handler",
252252
"--with-exclude-translations=de,es,fr,it,ko,pt_BR,sv,ca,tr,cs,sk,ja_JP_A,ja_JP_HA,ja_JP_HI,ja_JP_I,zh_TW,zh_HK",
253253
"--disable-manpages",
254+
"--disable-jvm-feature-aot",
255+
"--disable-jvm-feature-graal",
254256
"--disable-jvm-feature-shenandoahgc",
255257
versionArgs(input, common))
256258
};
@@ -404,7 +406,7 @@ var getJibProfilesProfiles = function (input, common, data) {
404406
"linux-x64": {
405407
target_os: "linux",
406408
target_cpu: "x64",
407-
dependencies: ["devkit", "gtest", "graphviz", "pandoc", "graalunit_lib"],
409+
dependencies: ["devkit", "gtest", "graphviz", "pandoc"],
408410
configure_args: concat(common.configure_args_64bit,
409411
"--with-zlib=system", "--disable-dtrace",
410412
(isWsl(input) ? [ "--host=x86_64-unknown-linux-gnu",
@@ -423,7 +425,7 @@ var getJibProfilesProfiles = function (input, common, data) {
423425
"macosx-x64": {
424426
target_os: "macosx",
425427
target_cpu: "x64",
426-
dependencies: ["devkit", "gtest", "pandoc", "graalunit_lib"],
428+
dependencies: ["devkit", "gtest", "pandoc"],
427429
configure_args: concat(common.configure_args_64bit, "--with-zlib=system",
428430
"--with-macosx-version-max=10.9.0",
429431
// Use system SetFile instead of the one in the devkit as the
@@ -434,7 +436,7 @@ var getJibProfilesProfiles = function (input, common, data) {
434436
"windows-x64": {
435437
target_os: "windows",
436438
target_cpu: "x64",
437-
dependencies: ["devkit", "gtest", "pandoc", "graalunit_lib"],
439+
dependencies: ["devkit", "gtest", "pandoc"],
438440
configure_args: concat(common.configure_args_64bit),
439441
},
440442

@@ -454,8 +456,6 @@ var getJibProfilesProfiles = function (input, common, data) {
454456
configure_args: [
455457
"--openjdk-target=aarch64-linux-gnu",
456458
"--disable-jvm-feature-jvmci",
457-
"--disable-jvm-feature-graal",
458-
"--disable-jvm-feature-aot",
459459
],
460460
},
461461

@@ -1152,15 +1152,6 @@ var getJibProfilesDependencies = function (input, common) {
11521152
configure_args: "",
11531153
},
11541154

1155-
graalunit_lib: {
1156-
organization: common.organization,
1157-
ext: "zip",
1158-
revision: "619_Apr_12_2018",
1159-
module: "graalunit-lib",
1160-
configure_args: "--with-graalunit-lib=" + input.get("graalunit_lib", "install_path"),
1161-
environment_name: "GRAALUNIT_LIB"
1162-
},
1163-
11641155
gtest: {
11651156
organization: common.organization,
11661157
ext: "tar.gz",

test/hotspot/jtreg/compiler/jvmci/compilerToVM/IsCompilableTest.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
* @requires vm.jvmci & vm.compMode == "Xmixed"
2828
* @library /test/lib /
2929
* @library ../common/patches
30+
* @modules jdk.internal.vm.compiler
3031
* @modules java.base/jdk.internal.misc
3132
* @modules java.base/jdk.internal.org.objectweb.asm
3233
* java.base/jdk.internal.org.objectweb.asm.tree
@@ -41,6 +42,23 @@
4142
* -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
4243
* -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI -XX:+UseJVMCICompiler
4344
* compiler.jvmci.compilerToVM.IsCompilableTest
45+
*/
46+
47+
/**
48+
* @test
49+
* @requires vm.jvmci & vm.compMode == "Xmixed"
50+
* @library /test/lib /
51+
* @library ../common/patches
52+
* @modules java.base/jdk.internal.misc
53+
* @modules java.base/jdk.internal.org.objectweb.asm
54+
* java.base/jdk.internal.org.objectweb.asm.tree
55+
* jdk.internal.vm.ci/jdk.vm.ci.hotspot
56+
* jdk.internal.vm.ci/jdk.vm.ci.code
57+
* jdk.internal.vm.ci/jdk.vm.ci.meta
58+
* jdk.internal.vm.ci/jdk.vm.ci.runtime
59+
*
60+
* @build jdk.internal.vm.ci/jdk.vm.ci.hotspot.CompilerToVMHelper sun.hotspot.WhiteBox
61+
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
4462
* @run main/othervm -Xbootclasspath/a:.
4563
* -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
4664
* -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI -XX:-UseJVMCICompiler

test/hotspot/jtreg/runtime/InvocationTests/invocationGraalTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
* @library /test/lib
3131
* @modules java.base/jdk.internal.org.objectweb.asm
3232
* java.base/jdk.internal.misc
33+
* @modules jdk.internal.vm.compiler
3334
* @compile shared/AbstractGenerator.java shared/AccessCheck.java shared/AccessType.java
3435
* shared/Caller.java shared/ExecutorGenerator.java shared/Utils.java
3536
* shared/ByteArrayClassLoader.java shared/Checker.java shared/GenericClassGenerator.java

test/jdk/com/sun/jdi/EATests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
*
115115
* @author Richard Reingruber richard DOT reingruber AT sap DOT com
116116
*
117-
* @requires ((vm.compMode == "Xmixed") & vm.jvmci)
117+
* @requires ((vm.compMode == "Xmixed") & vm.graal.enabled)
118118
*
119119
* @library /test/lib /test/hotspot/jtreg
120120
*

0 commit comments

Comments
 (0)