From 31f70391e5f22ff5803d16b52c1e1248b6253d8c Mon Sep 17 00:00:00 2001 From: Calvin Cheung Date: Tue, 4 Jun 2024 16:43:08 +0000 Subject: [PATCH] 8316131: runtime/cds/appcds/TestParallelGCWithCDS.java fails with JNI error Reviewed-by: dholmes, iklam --- .../jtreg/runtime/cds/appcds/TestParallelGCWithCDS.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/hotspot/jtreg/runtime/cds/appcds/TestParallelGCWithCDS.java b/test/hotspot/jtreg/runtime/cds/appcds/TestParallelGCWithCDS.java index 152e10ac47a..3f759d13a4c 100644 --- a/test/hotspot/jtreg/runtime/cds/appcds/TestParallelGCWithCDS.java +++ b/test/hotspot/jtreg/runtime/cds/appcds/TestParallelGCWithCDS.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2022, 2024, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -115,9 +115,11 @@ public class TestParallelGCWithCDS { out.shouldContain(HELLO); } else { String pattern = "((Too small maximum heap)" + - "|(GC triggered before VM initialization completed)" + - "|(java.lang.OutOfMemoryError: Java heap space))"; + "|(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))"; out.shouldMatch(pattern); + out.shouldNotHaveFatalError(); } n++; }