< prev index next >

test/hotspot/jtreg/runtime/cds/appcds/jvmti/parallelLoad/ParallelLoadAndTransformTest.java

Print this page
*** 39,22 ***
  import java.util.List;
  import java.util.stream.Collectors;
  import java.util.stream.IntStream;
  
  import jdk.test.lib.helpers.ClassFileInstaller;
  
  public class ParallelLoadAndTransformTest {
  
      public static void main(String[] args) throws Exception {
          String prop = "-Dappcds.parallel.transform.mode=cflh";
          String appJar = ClassFileInstaller.writeJar("parallel_load.jar",
                              getClassList(true));
          String agentJar = prepareAgent();
  
!         TestCommon.test(appJar, getClassList(false),
                          "-javaagent:" + agentJar + "=ParallelClassTr.*",
                          prop, "ParallelLoad");
      }
  
  
      private static String[] getClassList(boolean includeWatchdog) {
          List<String> classList =
--- 39,26 ---
  import java.util.List;
  import java.util.stream.Collectors;
  import java.util.stream.IntStream;
  
  import jdk.test.lib.helpers.ClassFileInstaller;
+ import jdk.test.lib.process.OutputAnalyzer;
  
  public class ParallelLoadAndTransformTest {
  
      public static void main(String[] args) throws Exception {
          String prop = "-Dappcds.parallel.transform.mode=cflh";
          String appJar = ClassFileInstaller.writeJar("parallel_load.jar",
                              getClassList(true));
          String agentJar = prepareAgent();
  
!         TestCommon.testDump(appJar, getClassList(false), "-XX:-PreloadSharedClasses");
+ 
+         OutputAnalyzer output = TestCommon.exec(appJar,
                          "-javaagent:" + agentJar + "=ParallelClassTr.*",
                          prop, "ParallelLoad");
+         TestCommon.checkExec(output);
      }
  
  
      private static String[] getClassList(boolean includeWatchdog) {
          List<String> classList =
< prev index next >