8315770: serviceability/sa/TestJmapCoreMetaspace.java should run with -XX:-VerifyDependencies

Backport-of: 877731d2a2
This commit is contained in:
Soumadipta Roy
2023-09-26 14:44:03 +00:00
committed by Vitaly Provodin
parent 09ec05318a
commit 77b781dd38

View File

@@ -73,6 +73,9 @@ public class TestJmapCore {
static void test(String type) throws Throwable {
ProcessBuilder pb = ProcessTools.createTestJvm("-XX:+CreateCoredumpOnCrash",
"-Xmx512m", "-XX:MaxMetaspaceSize=64m", "-XX:+CrashOnOutOfMemoryError",
// The test loads lots of small classes to exhaust Metaspace, skip method
// dependency verification to improve performance in debug builds.
Platform.isDebugBuild() ? "-XX:-VerifyDependencies" : "--show-version",
CoreUtils.getAlwaysPretouchArg(true),
TestJmapCore.class.getName(), type);