Skip to content

Commit ab9f70d

Browse files
committed
8366420: AOTMapTest fails when default jsa is missing from JDK
Reviewed-by: iklam, azeller
1 parent 986ecff commit ab9f70d

File tree

2 files changed

+6
-22
lines changed

2 files changed

+6
-22
lines changed

test/hotspot/jtreg/runtime/cds/CDSMapTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
* @test
2626
* @bug 8308903
2727
* @summary Test the contents of -Xlog:aot+map
28-
* @requires vm.flagless
2928
* @requires vm.cds
3029
* @library /test/lib
3130
* @run driver CDSMapTest

test/hotspot/jtreg/runtime/cds/appcds/aotCache/AOTMapTest.java

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
* @test id=aot
2626
* @bug 8362566
2727
* @summary Test the contents of -Xlog:aot+map with AOT workflow
28-
* @requires vm.flagless
2928
* @requires vm.cds.supports.aot.class.linking
3029
* @library /test/lib /test/hotspot/jtreg/runtime/cds
3130
* @build AOTMapTest
@@ -37,7 +36,6 @@
3736
* @test id=dynamic
3837
* @bug 8362566
3938
* @summary Test the contents of -Xlog:aot+map with AOT workflow
40-
* @requires vm.flagless
4139
* @requires vm.cds.supports.aot.class.linking
4240
* @library /test/lib /test/hotspot/jtreg/runtime/cds
4341
* @build jdk.test.whitebox.WhiteBox
@@ -58,16 +56,11 @@ public class AOTMapTest {
5856
static final String mainClass = "AOTMapTestApp";
5957

6058
public static void main(String[] args) throws Exception {
61-
doTest(args, false);
62-
63-
if (Platform.is64bit()) {
64-
// There's no oop/klass compression on 32-bit.
65-
doTest(args, true);
66-
}
59+
doTest(args);
6760
}
6861

69-
public static void doTest(String[] args, boolean compressed) throws Exception {
70-
Tester tester = new Tester(compressed);
62+
public static void doTest(String[] args) throws Exception {
63+
Tester tester = new Tester();
7164
tester.run(args);
7265

7366
validate(tester.dumpMapFile);
@@ -80,16 +73,14 @@ static void validate(String mapFileName) {
8073
}
8174

8275
static class Tester extends CDSAppTester {
83-
boolean compressed;
8476
String dumpMapFile;
8577
String runMapFile;
8678

87-
public Tester(boolean compressed) {
79+
public Tester() {
8880
super(mainClass);
89-
this.compressed = compressed;
9081

91-
dumpMapFile = "test" + (compressed ? "0" : "1") + ".dump.aotmap";
92-
runMapFile = "test" + (compressed ? "0" : "1") + ".run.aotmap";
82+
dumpMapFile = "test" + "0" + ".dump.aotmap";
83+
runMapFile = "test" + "0" + ".run.aotmap";
9384
}
9485

9586
@Override
@@ -104,12 +95,6 @@ public String[] vmArgs(RunMode runMode) {
10495
vmArgs.add("-Xmx128M");
10596
vmArgs.add("-Xlog:aot=debug");
10697

107-
if (Platform.is64bit()) {
108-
// These options are available only on 64-bit.
109-
String sign = (compressed) ? "+" : "-";
110-
vmArgs.add("-XX:" + sign + "UseCompressedOops");
111-
}
112-
11398
// filesize=0 ensures that a large map file not broken up in multiple files.
11499
String logMapPrefix = "-Xlog:aot+map=debug,aot+map+oops=trace:file=";
115100
String logMapSuffix = ":none:filesize=0";

0 commit comments

Comments
 (0)