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
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