8086003: Test fails on OSX with java.lang.RuntimeException 'Narrow klass base: 0x0000000000000000, Narrow klass shift: 3' missing
Summary: Make the test reserve 1G rather than 3G, so it is more reliable.
Reviewed-by: hseigel, stuefe
--- a/test/hotspot/jtreg/runtime/CompressedOops/CompressedClassPointers.java Mon Oct 28 11:06:17 2019 -0700
+++ b/test/hotspot/jtreg/runtime/CompressedOops/CompressedClassPointers.java Mon Oct 28 16:41:47 2019 -0400
@@ -53,10 +53,10 @@
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 @@
}
}
smallHeapTest();
- smallHeapTestWith3G();
+ smallHeapTestWith1G();
largeHeapTest();
largePagesTest();
heapBaseMinAddressTest();