Skip to content

Commit 1258af4

Browse files
author
Doug Simon
committed
8357135: java.lang.OutOfMemoryError: Error creating or attaching to libjvmci after JDK-8356447
Reviewed-by: never, yzheng
1 parent 16d4551 commit 1258af4

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

test/hotspot/jtreg/gc/arguments/TestUseCompressedOopsFlagsWithUlimit.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ private static void checkFlag(long ulimit, long maxram, int maxrampercent, boole
5454
args.add("-XX:MaxRAM=" + maxram);
5555
args.add("-XX:MaxRAMPercentage=" + maxrampercent);
5656
args.add("-XX:+PrintFlagsFinal");
57+
58+
// Avoid issues with libjvmci failing to reserve
59+
// a large virtual address space for its heap
60+
args.add("-Xint");
61+
5762
args.add("-version");
5863

5964
// Convert bytes to kbytes for ulimit -v

test/hotspot/jtreg/vmTestbase/nsk/jvmti/Allocate/alloc001/alloc001.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ public static void main(String[] args) throws Throwable {
8585
"-Djava.library.path=" + Utils.TEST_NATIVE_PATH,
8686
"-agentpath:" + Utils.TEST_NATIVE_PATH + File.separator + System.mapLibraryName("alloc001"),
8787
"-XX:CompressedClassSpaceSize=64m",
88+
"-Xint", // Avoids issues with libjvmci failing to reserve
89+
// a large virtual address space for its heap
8890
Test.class.getName()
8991
));
9092
cmd = escapeCmd(cmd);

0 commit comments

Comments
 (0)