Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8361226

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 26
    • 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.

            shade Aleksey Shipilev
            dholmes David Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: