139 |
139 |
140 // needed, otherwise system considers empty extra option as a |
140 // needed, otherwise system considers empty extra option as a |
141 // main class param, and fails with "Could not find or load main class" |
141 // main class param, and fails with "Could not find or load main class" |
142 if (!extraOption.isEmpty()) { |
142 if (!extraOption.isEmpty()) { |
143 output = TestCommon.exec(appJar, "-XX:+UseCompressedOops", |
143 output = TestCommon.exec(appJar, "-XX:+UseCompressedOops", |
144 collectorOption, extraOption, "HelloString"); |
144 collectorOption, "-Xlog:cds", extraOption, "HelloString"); |
145 } else { |
145 } else { |
146 output = TestCommon.exec(appJar, "-XX:+UseCompressedOops", |
146 output = TestCommon.exec(appJar, "-XX:+UseCompressedOops", |
147 collectorOption, "HelloString"); |
147 collectorOption, "-Xlog:cds", "HelloString"); |
148 } |
148 } |
149 |
149 |
150 if (expectedWarning != null) |
150 if (expectedWarning != null) |
151 output.shouldMatch(expectedWarning); |
151 output.shouldMatch(expectedWarning); |
152 |
152 |