Skip to content

Commit 8903854

Browse files
committed
8344718: Test runtime/cds/appcds/jigsaw/addmods/AddmodsOption.java fails on Linuxppc64le after JDK-8344239
Reviewed-by: ccheung, mdoerr
1 parent a07b72b commit 8903854

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

test/hotspot/jtreg/runtime/cds/appcds/jigsaw/addmods/AddmodsOption.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,10 @@
3434
*/
3535

3636
import jdk.test.lib.process.OutputAnalyzer;
37-
import jdk.test.whitebox.WhiteBox;
37+
import jdk.test.whitebox.code.Compiler;
3838

3939
public class AddmodsOption {
4040

41-
private static final WhiteBox WB = WhiteBox.getWhiteBox();
42-
private static final boolean isJVMCISupported = WB.getBooleanVMFlag("EnableJVMCI");
43-
4441
public static void main(String[] args) throws Exception {
4542
final String moduleOption = "jdk.httpserver/sun.net.httpserver.simpleserver.Main";
4643
final String incubatorModule = "jdk.incubator.vector";
@@ -143,7 +140,7 @@ public static void main(String[] args) throws Exception {
143140
.shouldContain("subgraph jdk.internal.module.ArchivedBootLayer is not recorde")
144141
.shouldHaveExitValue(0);
145142

146-
if (isJVMCISupported) {
143+
if (Compiler.isJVMCIEnabled()) {
147144
// dump an archive with JVMCI option which indirectly adds the
148145
// jdk.internal.vm.ci module using the --add-modules option
149146
archiveName = TestCommon.getNewArchiveName("jvmci-module");

0 commit comments

Comments
 (0)