changeset 58625:13ad9a1bac18

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
author coleenp
date Mon, 28 Oct 2019 16:41:47 -0400
parents c3696c94049d
children fa0b9f9c597a
files test/hotspot/jtreg/runtime/CompressedOops/CompressedClassPointers.java
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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();