--- a/test/hotspot/jtreg/runtime/cds/appcds/javaldr/HumongousDuringDump.java Mon Nov 18 13:22:27 2019 +0100
+++ b/test/hotspot/jtreg/runtime/cds/appcds/javaldr/HumongousDuringDump.java Mon Nov 18 14:13:11 2019 -0800
@@ -28,8 +28,7 @@
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds /test/hotspot/jtreg/runtime/cds/appcds/test-classes
* @requires vm.cds.archived.java.heap
* @requires vm.flavor != "minimal"
- * @build HumongousDuringDumpTransformer Hello
- * @run main/othervm/timeout=240 HumongousDuringDump
+ * @run driver/timeout=240 HumongousDuringDump
*/
import jdk.test.lib.cds.CDSOptions;
@@ -38,10 +37,10 @@
public class HumongousDuringDump {
public static String appClasses[] = {
- "Hello",
+ Hello.class.getName(),
};
public static String agentClasses[] = {
- "HumongousDuringDumpTransformer",
+ HumongousDuringDumpTransformer.class.getName(),
};
public static void main(String[] args) throws Throwable {
@@ -60,7 +59,7 @@
String extraOption = "-XX:+AllowArchivingWithJavaAgent";
OutputAnalyzer out =
- TestCommon.testDump(appJar, TestCommon.list("Hello"),
+ TestCommon.testDump(appJar, TestCommon.list(Hello.class.getName()),
"-XX:+UnlockDiagnosticVMOptions", extraOption,
"-Xlog:gc+region+cds",
"-Xlog:gc+region=trace",
@@ -79,7 +78,7 @@
"-XX:+PrintSharedSpaces",
"-XX:+UnlockDiagnosticVMOptions", extraOption,
gcLog,
- "Hello")
+ Hello.class.getName())
.assertNormalExit();
}
}