< prev index next >

test/hotspot/jtreg/runtime/appcds/cacheObject/ArchivedIntegerCacheTest.java

Print this page




 120                 "-XX:AutoBoxCacheMax=20000",
 121                 "CheckIntegerCacheApp",
 122                 "20000",
 123                 "true");
 124         TestCommon.checkExec(output);
 125 
 126         // Test case 5)
 127         // - Large archived cache
 128         // - Larger requested cache
 129         System.out.println("----------------------- Test case 5 ----------------------");
 130         output = TestCommon.exec(appJar, use_whitebox_jar,
 131                 "--module-path",
 132                 moduleDir.toString(),
 133                 "-XX:+UnlockDiagnosticVMOptions",
 134                 "-XX:+WhiteBoxAPI",
 135                 "-XX:AutoBoxCacheMax=30000",
 136                 "CheckIntegerCacheApp",
 137                 "30000",
 138                 "false");
 139         TestCommon.checkExec(output);












 140     }
 141 }


 120                 "-XX:AutoBoxCacheMax=20000",
 121                 "CheckIntegerCacheApp",
 122                 "20000",
 123                 "true");
 124         TestCommon.checkExec(output);
 125 
 126         // Test case 5)
 127         // - Large archived cache
 128         // - Larger requested cache
 129         System.out.println("----------------------- Test case 5 ----------------------");
 130         output = TestCommon.exec(appJar, use_whitebox_jar,
 131                 "--module-path",
 132                 moduleDir.toString(),
 133                 "-XX:+UnlockDiagnosticVMOptions",
 134                 "-XX:+WhiteBoxAPI",
 135                 "-XX:AutoBoxCacheMax=30000",
 136                 "CheckIntegerCacheApp",
 137                 "30000",
 138                 "false");
 139         TestCommon.checkExec(output);
 140 
 141         // Test case 6)
 142         // - Cache is too large to archive
 143         output = TestCommon.dump(appJar,
 144                 TestCommon.list("CheckIntegerCacheApp"),
 145                 "-XX:AutoBoxCacheMax=2000000",
 146                 "-Xmx1g",
 147                 "-XX:NewSize=1g",
 148                 "-Xlog:cds+heap=info",
 149                 use_whitebox_jar);
 150         TestCommon.checkDump(output,
 151             "Cannot archive the sub-graph referenced from [Ljava.lang.Integer; object");
 152     }
 153 }
< prev index next >