Skip to content

Commit

Permalink
8299548: Fix hotspot/test/runtime/Metaspace/MaxMetaspaceSizeTest.java…
Browse files Browse the repository at this point in the history
… in 8u

Reviewed-by: phh
  • Loading branch information
zzambers authored and Paul Hohensee committed Jan 9, 2023
1 parent 7ad517d commit 0f698da
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion hotspot/test/runtime/Metaspace/MaxMetaspaceSizeTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,21 @@

import com.oracle.java.testlibrary.ProcessTools;
import com.oracle.java.testlibrary.OutputAnalyzer;
import com.oracle.java.testlibrary.Platform;

/*
* @test MaxMetaspaceSizeTest
* @requires vm.bits == "64"
* @bug 8087291
* @library /testlibrary
* @run main/othervm MaxMetaspaceSizeTest
*/

public class MaxMetaspaceSizeTest {
public static void main(String... args) throws Exception {
if (!Platform.is64bit()) {
System.out.println("Test requires 64-bit JVM. Skipping...");
return;
}
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(
"-Xmx1g",
"-XX:InitialBootClassLoaderMetaspaceSize=4195328",
Expand Down

1 comment on commit 0f698da

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.