8321550: Update several runtime/cds tests to use vm flags or mark as flagless

Reviewed-by: matsaave, iklam
This commit is contained in:
Calvin Cheung 2024-03-29 18:05:21 +00:00
parent 8a0ef811ed
commit d1b51e39c9
4 changed files with 14 additions and 12 deletions

View File

@ -49,10 +49,10 @@ public class TestCDSVMCrash {
}
}
// else this is the main test
ProcessBuilder pb = ProcessTools.createLimitedTestJavaProcessBuilder("-XX:+CrashOnOutOfMemoryError",
"-XX:-CreateCoredumpOnCrash", "-Xmx128m",
"-Xshare:on", TestCDSVMCrash.class.getName(),
"throwOOME");
ProcessBuilder pb = ProcessTools.createTestJavaProcessBuilder("-XX:+CrashOnOutOfMemoryError",
"-XX:-CreateCoredumpOnCrash", "-Xmx128m",
"-Xshare:on", TestCDSVMCrash.class.getName(),
"throwOOME");
// executeAndLog should throw an exception in the VM crashed
try {
CDSTestUtils.executeAndLog(pb, "cds_vm_crash");

View File

@ -27,6 +27,7 @@
* @summary VM crash caused by unloaded FillerObject_klass
* @library /test/lib
* @requires vm.cds
* @requires vm.flagless
* @run driver FillerObjectLoadTest
*/

View File

@ -29,6 +29,7 @@
* @bug 8279009 8275084
* @requires vm.cds
* @requires vm.cds.custom.loaders
* @requires vm.flagless
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
* @compile test-classes/Hello.java ClassSpecializerTestApp.java ClassListWithCustomClassNoSource.java
* @run main/othervm TestDumpClassListSource

View File

@ -42,14 +42,14 @@ public class ResolvedReferencesNotNullTest {
String appJar = TestCommon.getTestJar(SharedStringsUtils.TEST_JAR_NAME_FULL);
String whiteboxParam = SharedStringsUtils.getWbParam();
ProcessBuilder pb = ProcessTools.createLimitedTestJavaProcessBuilder("-cp",
appJar,
whiteboxParam,
"-XX:+UnlockDiagnosticVMOptions",
"-XX:+WhiteBoxAPI",
"ResolvedReferencesWb",
"false" // ResolvedReferencesTestApp is not archived
);
ProcessBuilder pb = ProcessTools.createTestJavaProcessBuilder("-cp",
appJar,
whiteboxParam,
"-XX:+UnlockDiagnosticVMOptions",
"-XX:+WhiteBoxAPI",
"ResolvedReferencesWb",
"false" // ResolvedReferencesTestApp is not archived
);
OutputAnalyzer output = new OutputAnalyzer(pb.start());
output.shouldHaveExitValue(0);