Test compiler/arguments/TestCompilerCounts.java fails with wrong CICompilerCount

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: 26
    • Component/s: hotspot
    • 26
    • aarch64
    • linux

      Test was introduced by JDK-8356000

      java.lang.AssertionError: Option 'CICompilerCount' is expected to have '12' value

      at jdk.test.lib.cli.CommandLineOptionTest.verifyOptionValue(CommandLineOptionTest.java:309)
      at jdk.test.lib.cli.CommandLineOptionTest.verifyOptionValue(CommandLineOptionTest.java:282)
      at jdk.test.lib.cli.CommandLineOptionTest.verifyOptionValueForSameVM(CommandLineOptionTest.java:408)
      at compiler.arguments.TestCompilerCounts.pass(TestCompilerCounts.java:168)
      at compiler.arguments.TestCompilerCounts.main(TestCompilerCounts.java:137)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:565)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:335)
      at java.base/java.lang.Thread.run(Thread.java:1474)
      Caused by: java.lang.RuntimeException: 'CICompilerCount\\s*:?=\\s*12' missing from stdout/stderr
      at jdk.test.lib.process.OutputAnalyzer.shouldMatch(OutputAnalyzer.java:372)
      at jdk.test.lib.cli.CommandLineOptionTest.verifyOptionValue(CommandLineOptionTest.java:301)
      ... 8 more

      Test output shows:

          intx CICompilerCount = 6 {product} {ergonomic}

      but due to output overflow we can't see the failing invocation in the log (though stacktrace should tell you).

      The test should report the actual as well as expected value on failure.

            Assignee:
            Aleksey Shipilev
            Reporter:
            David Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: