8193065: [TESTBUG] [TESTBUG]GCSharedStringsDuringDump.java: Exception in thread "main" java.lang.RuntimeException: String is not shared.
authorjiangli
Wed, 06 Dec 2017 20:06:43 -0500
changeset 48201 d0d30e5d1f3b
parent 48200 ed5680f2656a
child 48202 309dbeb79657
8193065: [TESTBUG] [TESTBUG]GCSharedStringsDuringDump.java: Exception in thread "main" java.lang.RuntimeException: String is not shared. Summary: Check if 'oa' region is missing. Reviewed-by: hseigel, ccheung
test/hotspot/jtreg/runtime/appcds/javaldr/GCSharedStringsDuringDump.java
--- a/test/hotspot/jtreg/runtime/appcds/javaldr/GCSharedStringsDuringDump.java	Wed Dec 06 18:37:57 2017 -0800
+++ b/test/hotspot/jtreg/runtime/appcds/javaldr/GCSharedStringsDuringDump.java	Wed Dec 06 20:06:43 2017 -0500
@@ -101,6 +101,7 @@
             if (output.getStdout().contains("Too many string space regions") ||
                 output.getStderr().contains("Unable to write archive heap memory regions") ||
                 output.getStdout().contains("Try increasing NewSize") ||
+                !output.getStdout().contains("oa0 space:") ||
                 output.getExitValue() != 0) {
                 // Try again with larger heap and NewSize, this should increase the
                 // G1 heap region size to 2M