diff --git a/test/hotspot/jtreg/runtime/cds/appcds/TestParallelGCWithCDS.java b/test/hotspot/jtreg/runtime/cds/appcds/TestParallelGCWithCDS.java index 3f759d13a4c..691c87fef36 100644 --- a/test/hotspot/jtreg/runtime/cds/appcds/TestParallelGCWithCDS.java +++ b/test/hotspot/jtreg/runtime/cds/appcds/TestParallelGCWithCDS.java @@ -116,8 +116,9 @@ public class TestParallelGCWithCDS { } else { String pattern = "((Too small maximum heap)" + "|(GC triggered before VM initialization completed)" + - "|(java.lang.OutOfMemoryError: Java heap space)" + - "|(Initial heap size set to a larger value than the maximum heap size))"; + "|(Initial heap size set to a larger value than the maximum heap size)" + + "|(java.lang.OutOfMemoryError)" + + "|(Error: A JNI error has occurred, please check your installation and try again))"; out.shouldMatch(pattern); out.shouldNotHaveFatalError(); }