8271323: [TESTBUG] serviceability/sa/ClhsdbCDSCore.java fails with -XX:TieredStopAtLevel=1

Reviewed-by: cjplummer, kvn
This commit is contained in:
Nick Gasson 2021-07-28 01:58:02 +00:00
parent 752b6df34c
commit 9bc52afa48

@ -125,8 +125,8 @@ public class ClhsdbCDSCore {
List testJavaOpts = Arrays.asList(Utils.getTestJavaOpts());
if (testJavaOpts.contains("-Xcomp") && testJavaOpts.contains("-XX:TieredStopAtLevel=1")) {
// No MDOs are allocated in -XX:TieredStopAtLevel=1 + -Xcomp mode
if (testJavaOpts.contains("-XX:TieredStopAtLevel=1")) {
// No MDOs are allocated in -XX:TieredStopAtLevel=1
// The reason is methods being compiled aren't hot enough
// Let's not call printmdo in such scenario
cmds = List.of("printall", "jstack -v");