test/hotspot/jtreg/runtime/appcds/cacheObject/ArchivedIntegerCacheTest.java
changeset 51425 4e9667589c43
parent 51388 0dcd27526967
child 51990 6003e034cdd8
--- a/test/hotspot/jtreg/runtime/appcds/cacheObject/ArchivedIntegerCacheTest.java	Thu Aug 16 10:20:00 2018 -0700
+++ b/test/hotspot/jtreg/runtime/appcds/cacheObject/ArchivedIntegerCacheTest.java	Thu Aug 16 17:29:22 2018 -0400
@@ -137,5 +137,17 @@
                 "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");
     }
 }