8086003: Test fails on OSX with java.lang.RuntimeException 'Narrow klass base: 0x0000000000000000, Narrow klass shift: 3' missing
authorcoleenp
Mon, 28 Oct 2019 16:41:47 -0400
changeset 58829 13ad9a1bac18
parent 58825 c3696c94049d
child 58830 fa0b9f9c597a
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
test/hotspot/jtreg/runtime/CompressedOops/CompressedClassPointers.java
--- 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();