From ca3fe7b3fd9c4d08ac7a40d9bd36149ce3d71d9b Mon Sep 17 00:00:00 2001 From: Aleksey Shipilev Date: Mon, 18 Sep 2023 05:53:12 +0000 Subject: [PATCH] 8315932: runtime/InvocationTests spend a lot of time on dependency verification Reviewed-by: phh, vlivanov --- .../hotspot/jtreg/runtime/InvocationTests/invocationC1Tests.java | 1 + .../jtreg/runtime/InvocationTests/invocationOldCHATests.java | 1 + .../jtreg/runtime/InvocationTests/invokeinterfaceTests.java | 1 + .../jtreg/runtime/InvocationTests/invokespecialTests.java | 1 + .../jtreg/runtime/InvocationTests/invokevirtualTests.java | 1 + 5 files changed, 5 insertions(+) diff --git a/test/hotspot/jtreg/runtime/InvocationTests/invocationC1Tests.java b/test/hotspot/jtreg/runtime/InvocationTests/invocationC1Tests.java index a5fe4b2a148..4375521a037 100644 --- a/test/hotspot/jtreg/runtime/InvocationTests/invocationC1Tests.java +++ b/test/hotspot/jtreg/runtime/InvocationTests/invocationC1Tests.java @@ -72,6 +72,7 @@ public class invocationC1Tests { ", class file version: " + classFileVersion); ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-Xmx128M", "-Xcomp", "-XX:TieredStopAtLevel=1", + "-XX:MetaspaceSize=128K", "-XX:MaxMetaspaceSize=4M", "--add-exports", "java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED", whichTests, "--classfile_version=" + classFileVersion); OutputAnalyzer output = new OutputAnalyzer(pb.start()); diff --git a/test/hotspot/jtreg/runtime/InvocationTests/invocationOldCHATests.java b/test/hotspot/jtreg/runtime/InvocationTests/invocationOldCHATests.java index 2d4c2a38b21..68acc6f0bb1 100644 --- a/test/hotspot/jtreg/runtime/InvocationTests/invocationOldCHATests.java +++ b/test/hotspot/jtreg/runtime/InvocationTests/invocationOldCHATests.java @@ -69,6 +69,7 @@ public class invocationOldCHATests { ", class file version: " + classFileVersion); ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-Xmx128M", "-Xcomp", "-XX:+UnlockDiagnosticVMOptions", "-XX:-UseVtableBasedCHA", + "-XX:MetaspaceSize=128K", "-XX:MaxMetaspaceSize=4M", "--add-exports", "java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED", whichTests, "--classfile_version=" + classFileVersion); OutputAnalyzer output = new OutputAnalyzer(pb.start()); diff --git a/test/hotspot/jtreg/runtime/InvocationTests/invokeinterfaceTests.java b/test/hotspot/jtreg/runtime/InvocationTests/invokeinterfaceTests.java index 9d8a164637e..7113cb87613 100644 --- a/test/hotspot/jtreg/runtime/InvocationTests/invokeinterfaceTests.java +++ b/test/hotspot/jtreg/runtime/InvocationTests/invokeinterfaceTests.java @@ -75,6 +75,7 @@ public class invokeinterfaceTests { ", class file version: " + classFileVersion); ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-Xmx128M", option, "--add-exports", "java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED", + "-XX:MetaspaceSize=128K", "-XX:MaxMetaspaceSize=4M", "invokeinterface.Generator", "--classfile_version=" + classFileVersion); OutputAnalyzer output = new OutputAnalyzer(pb.start()); try { diff --git a/test/hotspot/jtreg/runtime/InvocationTests/invokespecialTests.java b/test/hotspot/jtreg/runtime/InvocationTests/invokespecialTests.java index 564f83d822e..5f5d64060ec 100644 --- a/test/hotspot/jtreg/runtime/InvocationTests/invokespecialTests.java +++ b/test/hotspot/jtreg/runtime/InvocationTests/invokespecialTests.java @@ -72,6 +72,7 @@ public class invokespecialTests { ", class file version: " + classFileVersion); ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-Xmx128M", option, "--add-exports", "java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED", + "-XX:MetaspaceSize=128K", "-XX:MaxMetaspaceSize=4M", "invokespecial.Generator", "--classfile_version=" + classFileVersion); OutputAnalyzer output = new OutputAnalyzer(pb.start()); try { diff --git a/test/hotspot/jtreg/runtime/InvocationTests/invokevirtualTests.java b/test/hotspot/jtreg/runtime/InvocationTests/invokevirtualTests.java index 9cc19b6081c..f5f700e9fd6 100644 --- a/test/hotspot/jtreg/runtime/InvocationTests/invokevirtualTests.java +++ b/test/hotspot/jtreg/runtime/InvocationTests/invokevirtualTests.java @@ -72,6 +72,7 @@ public class invokevirtualTests { ", class file version: " + classFileVersion); ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-Xmx128M", option, "--add-exports", "java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED", + "-XX:MetaspaceSize=128K", "-XX:MaxMetaspaceSize=4M", "invokevirtual.Generator", "--classfile_version=" + classFileVersion); OutputAnalyzer output = new OutputAnalyzer(pb.start()); try {