8316131: runtime/cds/appcds/TestParallelGCWithCDS.java fails with JNI error

Reviewed-by: dholmes, iklam
This commit is contained in:
Calvin Cheung 2024-06-04 16:43:08 +00:00
parent 4a1cdd5ba9
commit 31f70391e5

View File

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -115,9 +115,11 @@ public class TestParallelGCWithCDS {
out.shouldContain(HELLO); out.shouldContain(HELLO);
} else { } else {
String pattern = "((Too small maximum heap)" + String pattern = "((Too small maximum heap)" +
"|(GC triggered before VM initialization completed)" + "|(GC triggered before VM initialization completed)" +
"|(java.lang.OutOfMemoryError: Java heap space))"; "|(java.lang.OutOfMemoryError: Java heap space)" +
"|(Initial heap size set to a larger value than the maximum heap size))";
out.shouldMatch(pattern); out.shouldMatch(pattern);
out.shouldNotHaveFatalError();
} }
n++; n++;
} }