From 1cfa67d1d5248022e7b49057e3dce0bcecf230fc Mon Sep 17 00:00:00 2001 From: Jiangli Zhou Date: Wed, 6 Dec 2017 20:06:43 -0500 Subject: [PATCH] 8193065: [TESTBUG] [TESTBUG]GCSharedStringsDuringDump.java: Exception in thread "main" java.lang.RuntimeException: String is not shared Check if 'oa' region is missing. Reviewed-by: hseigel, ccheung --- .../jtreg/runtime/appcds/javaldr/GCSharedStringsDuringDump.java | 1 + 1 file changed, 1 insertion(+) diff --git a/test/hotspot/jtreg/runtime/appcds/javaldr/GCSharedStringsDuringDump.java b/test/hotspot/jtreg/runtime/appcds/javaldr/GCSharedStringsDuringDump.java index 38e23c31a30..8faffaaf14e 100644 --- a/test/hotspot/jtreg/runtime/appcds/javaldr/GCSharedStringsDuringDump.java +++ b/test/hotspot/jtreg/runtime/appcds/javaldr/GCSharedStringsDuringDump.java @@ -101,6 +101,7 @@ public class GCSharedStringsDuringDump { 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