< prev index next >

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

Print this page

 66         pb = ProcessTools.createLimitedTestJavaProcessBuilder(
 67             "-XX:AOTMode=create",
 68             "-XX:AOTConfiguration=" + aotConfigFile,
 69             "-XX:AOTCache=" + aotCacheFile,
 70             "-cp", appJar);
 71         out = CDSTestUtils.executeAndLog(pb, "asm");
 72         out.shouldHaveExitValue(0);
 73 
 74         //----------------------------------------------------------------------
 75         System.out.println("Production Run with AOTCache defaults");
 76         pb = ProcessTools.createLimitedTestJavaProcessBuilder(
 77             "-XX:AOTCache=" + aotCacheFile,
 78             "-cp", appJar, helloClass);
 79         out = CDSTestUtils.executeAndLog(pb, "prod-default");
 80         out.shouldHaveExitValue(0);
 81 
 82         //----------------------------------------------------------------------
 83         System.out.println("Production Run with AOTCache and eager compilation explicitly ON");
 84         pb = ProcessTools.createLimitedTestJavaProcessBuilder(
 85             "-XX:AOTCache=" + aotCacheFile,
 86             "-XX:+UnlockExperimentalVMOptions",
 87             "-XX:+AOTCompileEagerly",
 88             "-cp", appJar, helloClass);
 89         out = CDSTestUtils.executeAndLog(pb, "prod-eager-on");
 90         out.shouldHaveExitValue(0);
 91 
 92         //----------------------------------------------------------------------
 93         System.out.println("Production Run with AOTCache and eager compilation explicitly OFF");
 94         pb = ProcessTools.createLimitedTestJavaProcessBuilder(
 95             "-XX:AOTCache=" + aotCacheFile,
 96             "-XX:+UnlockExperimentalVMOptions",
 97             "-XX:-AOTCompileEagerly",
 98             "-cp", appJar, helloClass);
 99         out = CDSTestUtils.executeAndLog(pb, "prod-eager-off");
100         out.shouldHaveExitValue(0);
101     }
102 }

 66         pb = ProcessTools.createLimitedTestJavaProcessBuilder(
 67             "-XX:AOTMode=create",
 68             "-XX:AOTConfiguration=" + aotConfigFile,
 69             "-XX:AOTCache=" + aotCacheFile,
 70             "-cp", appJar);
 71         out = CDSTestUtils.executeAndLog(pb, "asm");
 72         out.shouldHaveExitValue(0);
 73 
 74         //----------------------------------------------------------------------
 75         System.out.println("Production Run with AOTCache defaults");
 76         pb = ProcessTools.createLimitedTestJavaProcessBuilder(
 77             "-XX:AOTCache=" + aotCacheFile,
 78             "-cp", appJar, helloClass);
 79         out = CDSTestUtils.executeAndLog(pb, "prod-default");
 80         out.shouldHaveExitValue(0);
 81 
 82         //----------------------------------------------------------------------
 83         System.out.println("Production Run with AOTCache and eager compilation explicitly ON");
 84         pb = ProcessTools.createLimitedTestJavaProcessBuilder(
 85             "-XX:AOTCache=" + aotCacheFile,
 86             "-XX:+UnlockDiagnosticVMOptions",
 87             "-XX:+AOTCompileEagerly",
 88             "-cp", appJar, helloClass);
 89         out = CDSTestUtils.executeAndLog(pb, "prod-eager-on");
 90         out.shouldHaveExitValue(0);
 91 
 92         //----------------------------------------------------------------------
 93         System.out.println("Production Run with AOTCache and eager compilation explicitly OFF");
 94         pb = ProcessTools.createLimitedTestJavaProcessBuilder(
 95             "-XX:AOTCache=" + aotCacheFile,
 96             "-XX:+UnlockDiagnosticVMOptions",
 97             "-XX:-AOTCompileEagerly",
 98             "-cp", appJar, helloClass);
 99         out = CDSTestUtils.executeAndLog(pb, "prod-eager-off");
100         out.shouldHaveExitValue(0);
101     }
102 }
< prev index next >