< prev index next >

test/hotspot/jtreg/runtime/cds/appcds/aotCache/AOTCompileEagerly.java

Print this page
*** 81,21 ***
  
          //----------------------------------------------------------------------
          System.out.println("Production Run with AOTCache and eager compilation explicitly ON");
          pb = ProcessTools.createLimitedTestJavaProcessBuilder(
              "-XX:AOTCache=" + aotCacheFile,
!             "-XX:+UnlockExperimentalVMOptions",
              "-XX:+AOTCompileEagerly",
              "-cp", appJar, helloClass);
          out = CDSTestUtils.executeAndLog(pb, "prod-eager-on");
          out.shouldHaveExitValue(0);
  
          //----------------------------------------------------------------------
          System.out.println("Production Run with AOTCache and eager compilation explicitly OFF");
          pb = ProcessTools.createLimitedTestJavaProcessBuilder(
              "-XX:AOTCache=" + aotCacheFile,
!             "-XX:+UnlockExperimentalVMOptions",
              "-XX:-AOTCompileEagerly",
              "-cp", appJar, helloClass);
          out = CDSTestUtils.executeAndLog(pb, "prod-eager-off");
          out.shouldHaveExitValue(0);
      }
--- 81,21 ---
  
          //----------------------------------------------------------------------
          System.out.println("Production Run with AOTCache and eager compilation explicitly ON");
          pb = ProcessTools.createLimitedTestJavaProcessBuilder(
              "-XX:AOTCache=" + aotCacheFile,
!             "-XX:+UnlockDiagnosticVMOptions",
              "-XX:+AOTCompileEagerly",
              "-cp", appJar, helloClass);
          out = CDSTestUtils.executeAndLog(pb, "prod-eager-on");
          out.shouldHaveExitValue(0);
  
          //----------------------------------------------------------------------
          System.out.println("Production Run with AOTCache and eager compilation explicitly OFF");
          pb = ProcessTools.createLimitedTestJavaProcessBuilder(
              "-XX:AOTCache=" + aotCacheFile,
!             "-XX:+UnlockDiagnosticVMOptions",
              "-XX:-AOTCompileEagerly",
              "-cp", appJar, helloClass);
          out = CDSTestUtils.executeAndLog(pb, "prod-eager-off");
          out.shouldHaveExitValue(0);
      }
< prev index next >