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

Reviewed-by: shade, kevinw, cjplummer, lmesnik
This commit is contained in:
Soumadipta Roy 2023-09-11 16:34:56 +00:00 committed by Aleksey Shipilev
parent d06a564328
commit 877731d2a2

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);