8086003: Test fails on OSX with java.lang.RuntimeException 'Narrow klass base: 0x0000000000000000, Narrow klass shift: 3' missing
Make the test reserve 1G rather than 3G, so it is more reliable. Reviewed-by: hseigel, stuefe
This commit is contained in:
parent
127c4a4e1b
commit
26da13e59c
@ -53,10 +53,10 @@ public class CompressedClassPointers {
|
||||
output.shouldHaveExitValue(0);
|
||||
}
|
||||
|
||||
public static void smallHeapTestWith3G() throws Exception {
|
||||
public static void smallHeapTestWith1G() throws Exception {
|
||||
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(
|
||||
"-XX:+UnlockDiagnosticVMOptions",
|
||||
"-XX:CompressedClassSpaceSize=3g",
|
||||
"-XX:CompressedClassSpaceSize=1g",
|
||||
"-Xmx128m",
|
||||
"-Xlog:gc+metaspace=trace",
|
||||
"-Xshare:off",
|
||||
@ -149,7 +149,7 @@ public class CompressedClassPointers {
|
||||
}
|
||||
}
|
||||
smallHeapTest();
|
||||
smallHeapTestWith3G();
|
||||
smallHeapTestWith1G();
|
||||
largeHeapTest();
|
||||
largePagesTest();
|
||||
heapBaseMinAddressTest();
|
||||
|
Loading…
Reference in New Issue
Block a user