< prev index next >

test/hotspot/jtreg/runtime/cds/appcds/jvmti/transformRelatedClasses/TransformRelatedClassesAppCDS.java

Print this page
@@ -104,11 +104,11 @@
  
      private void runWithAppLoader(ArrayList<TestEntry> testTable) throws Exception {
          String appJar = writeJar("app", testClasses);
  
          // create an archive
-         OutputAnalyzer out = TestCommon.dump(appJar, testClasses);
+         OutputAnalyzer out = TestCommon.dump(appJar, testClasses, "-XX:-PreloadSharedClasses");
          TestCommon.checkDump(out);
  
          // execute with archive
          for (TestEntry entry : testTable) {
              log("runTestWithAppLoader(): testCaseId = %d", entry.testCaseId);

@@ -185,11 +185,11 @@
          execAndCheckWithCustomLoader(TestEntry entry, String loaderType,
                                       String[] classList, String appJar,
                                       String agentJar, String customJar)
          throws Exception {
  
-         OutputAnalyzer out = TestCommon.dump(appJar, classList);
+         OutputAnalyzer out = TestCommon.dump(appJar, classList, "-XX:-PreloadSharedClasses");
          TestCommon.checkDump(out);
  
          String agentParam = "-javaagent:" + agentJar + "=" +
              TransformTestCommon.getAgentParams(entry, parent, child);
  
< prev index next >