< prev index next >

test/hotspot/jtreg/runtime/cds/appcds/ArchiveRelocationTest.java

Print this page
*** 66,16 ***
          String logArg = "-Xlog:cds=debug,cds+reloc=debug,cds+heap";
          String unlockArg = "-XX:+UnlockDiagnosticVMOptions";
          String nmtArg = "-XX:NativeMemoryTracking=detail";
  
          OutputAnalyzer out = TestCommon.dump(appJar,
!                                              TestCommon.list(mainClass),
!                                              unlockArg, logArg, nmtArg);
          out.shouldContain("Relocating archive from");
  
          TestCommon.run("-cp", appJar, unlockArg, runRelocArg, logArg,  mainClass)
!             .assertNormalExit(output -> {
                      if (run_reloc) {
                          output.shouldContain("Try to map archive(s) at an alternative address");
                      }
                  });
      }
--- 66,16 ---
          String logArg = "-Xlog:cds=debug,cds+reloc=debug,cds+heap";
          String unlockArg = "-XX:+UnlockDiagnosticVMOptions";
          String nmtArg = "-XX:NativeMemoryTracking=detail";
  
          OutputAnalyzer out = TestCommon.dump(appJar,
!                 TestCommon.list(mainClass),
!                 unlockArg, logArg, nmtArg);
          out.shouldContain("Relocating archive from");
  
          TestCommon.run("-cp", appJar, unlockArg, runRelocArg, logArg,  mainClass)
!                 .assertNormalExit(output -> {
                      if (run_reloc) {
                          output.shouldContain("Try to map archive(s) at an alternative address");
                      }
                  });
      }
< prev index next >