Skip to content

Commit 3130e03

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

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
@@ -73,6 +73,9 @@ public static void main(String[] args) throws Throwable {
7373
static void test(String type) throws Throwable {
7474
ProcessBuilder pb = ProcessTools.createTestJvm("-XX:+CreateCoredumpOnCrash",
7575
"-Xmx512m", "-XX:MaxMetaspaceSize=64m", "-XX:+CrashOnOutOfMemoryError",
76+
// The test loads lots of small classes to exhaust Metaspace, skip method
77+
// dependency verification to improve performance in debug builds.
78+
Platform.isDebugBuild() ? "-XX:-VerifyDependencies" : "--show-version",
7679
CoreUtils.getAlwaysPretouchArg(true),
7780
TestJmapCore.class.getName(), type);
7881

0 commit comments

Comments
 (0)