Skip to content

Commit

Permalink
8284319: Test runtime/cds/appcds/TestParallelGCWithCDS.java fails in …
Browse files Browse the repository at this point in the history
…repo-loom

Reviewed-by: iklam
  • Loading branch information
calvinccheung committed Apr 25, 2022
1 parent fb60594 commit 9b82708
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions test/hotspot/jtreg/runtime/cds/appcds/TestParallelGCWithCDS.java
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,10 @@ static void test(boolean dumpWithParallel, boolean execWithParallel, boolean use
if (out.getExitValue() == 0) {
out.shouldContain(HELLO);
} else {
String output = out.getStdout() + out.getStderr();
String exp1 = "Too small maximum heap";
String exp2 = "GC triggered before VM initialization completed";
if (!output.contains(exp1) && !output.contains(exp2)) {
throw new RuntimeException("Either '" + exp1 + "' or '" + exp2 + "' must be in stdout/stderr \n");
}
String pattern = "((Too small maximum heap)" +
"|(GC triggered before VM initialization completed)" +
"|(java.lang.OutOfMemoryError: Java heap space))";
out.shouldMatch(pattern);
}
n++;
}
Expand Down

1 comment on commit 9b82708

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.