< prev index next > test/hotspot/jtreg/runtime/cds/appcds/aotCache/ExcludedClasses.java
Print this page
public class ExcludedClasses {
static final String appJar = ClassFileInstaller.getJarPath("app.jar");
static final String mainClass = "TestApp";
public static void main(String[] args) throws Exception {
! Tester tester = new Tester();
! tester.runAOTWorkflow();
}
static class Tester extends CDSAppTester {
public Tester() {
super(mainClass);
public class ExcludedClasses {
static final String appJar = ClassFileInstaller.getJarPath("app.jar");
static final String mainClass = "TestApp";
public static void main(String[] args) throws Exception {
! {
! Tester tester = new Tester();
+ tester.run(new String[] {"AOT"} );
+ }
+ {
+ Tester tester = new Tester();
+ tester.run(new String[] {"LEYDEN"} );
+ }
}
static class Tester extends CDSAppTester {
public Tester() {
super(mainClass);
public static void main(String args[]) throws Exception {
// In new workflow, classes from custom loaders are passed from the preimage
// to the final image. See ClassPrelinker::record_unregistered_klasses().
custInstance = initFromCustomLoader();
! custArrayInstance = Array.newInstance(custInstance.getClass(), 0);
System.out.println(custArrayInstance);
System.out.println("Counter = " + Foo.hotSpot());
}
static Object initFromCustomLoader() throws Exception {
public static void main(String args[]) throws Exception {
// In new workflow, classes from custom loaders are passed from the preimage
// to the final image. See ClassPrelinker::record_unregistered_klasses().
custInstance = initFromCustomLoader();
! custArrayInstance = java.lang.reflect.Array.newInstance(custInstance.getClass(), 0);
System.out.println(custArrayInstance);
System.out.println("Counter = " + Foo.hotSpot());
}
static Object initFromCustomLoader() throws Exception {
< prev index next >