# HG changeset patch # User coleenp # Date 1572295307 14400 # Node ID 13ad9a1bac185a6e2ab55edb45b6116a15bb48f1 # Parent c3696c94049db20c0d47e2ad6e1faa48c933eaa2 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 diff -r c3696c94049d -r 13ad9a1bac18 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();