< prev index next >
test/hotspot/jtreg/runtime/appcds/cacheObject/ArchivedIntegerCacheTest.java
Print this page
*** 135,141 ****
--- 135,153 ----
"-XX:AutoBoxCacheMax=30000",
"CheckIntegerCacheApp",
"30000",
"false");
TestCommon.checkExec(output);
+
+ // Test case 6)
+ // - Cache is too large to archive
+ output = TestCommon.dump(appJar,
+ TestCommon.list("CheckIntegerCacheApp"),
+ "-XX:AutoBoxCacheMax=2000000",
+ "-Xmx1g",
+ "-XX:NewSize=1g",
+ "-Xlog:cds+heap=info",
+ use_whitebox_jar);
+ TestCommon.checkDump(output,
+ "Cannot archive the sub-graph referenced from [Ljava.lang.Integer; object");
}
}
< prev index next >