equal
deleted
inserted
replaced
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 } |