test/hotspot/jtreg/runtime/appcds/GraalWithLimitedMetaspace.java
changeset 49652 a74836b05c28
parent 49372 3bb8b00832d0
child 49931 840e26123940
equal deleted inserted replaced
49651:1e11c8a238f7 49652:a74836b05c28
   123             "-Xlog:cds",
   123             "-Xlog:cds",
   124             "-Xshare:dump",
   124             "-Xshare:dump",
   125             "-XX:MetaspaceSize=12M",
   125             "-XX:MetaspaceSize=12M",
   126             "-XX:MaxMetaspaceSize=12M"));
   126             "-XX:MaxMetaspaceSize=12M"));
   127 
   127 
   128         OutputAnalyzer output = TestCommon.executeAndLog(pb, "dump-archive")
   128         OutputAnalyzer output = TestCommon.executeAndLog(pb, "dump-archive");
   129             .shouldHaveExitValue(1)
   129         int exitValue = output.getExitValue();
   130             .shouldContain("Failed allocating metaspace object type");
   130         if (exitValue == 1) {
       
   131             output.shouldContain("Failed allocating metaspace object type");
       
   132         } else if (exitValue == 0) {
       
   133             output.shouldContain("Loading classes to share");
       
   134         } else {
       
   135             throw new RuntimeException("Unexpected exit value " + exitValue);
       
   136         }
   131     }
   137     }
   132 }
   138 }