Skip to content

Commit 877731d

Browse files
roy-soumadiptashipilev
authored andcommitted
8315770: serviceability/sa/TestJmapCoreMetaspace.java should run with -XX:-VerifyDependencies
Reviewed-by: shade, kevinw, cjplummer, lmesnik
1 parent d06a564 commit 877731d

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)