Skip to content

Commit 166adaa

Browse files
roy-soumadiptashipilev
authored andcommitted
8315770: serviceability/sa/TestJmapCoreMetaspace.java should run with -XX:-VerifyDependencies
Backport-of: 877731d2a20249ce4724a071ba2da1faa56daca4
1 parent ffef098 commit 166adaa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/hotspot/jtreg/serviceability/sa/TestJmapCore.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ static boolean useDefaultUlimit() {
8888
static void test(String type) throws Throwable {
8989
ProcessBuilder pb = ProcessTools.createTestJvm("-XX:+CreateCoredumpOnCrash",
9090
"-Xmx512m", "-XX:MaxMetaspaceSize=64m", "-XX:+CrashOnOutOfMemoryError", "-XX:-TransmitErrorReport",
91+
// The test loads lots of small classes to exhaust Metaspace, skip method
92+
// dependency verification to improve performance in debug builds.
93+
Platform.isDebugBuild() ? "-XX:-VerifyDependencies" : "--show-version",
9194
TestJmapCore.class.getName(), type);
9295

9396
boolean useDefaultUlimit = useDefaultUlimit();

0 commit comments

Comments
 (0)