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

compiler/compilercontrol/mixed/RandomValidCommandsTest.java failed with "method XXX compilable: true, but should: false on required level: 4: expected true to equal false"

XMLWordPrintable

    • aarch64
    • os_x

      The following test failed in the JDK20 CI:

      compiler/compilercontrol/mixed/RandomValidCommandsTest.java

      Here's a snippet from the log file:

      Checking expected compilation state: {
        method: public static java.lang.String compiler.compilercontrol.share.pool.sub.KlassDup.smethod()
        compile [Optional[false], Optional[false]]
        force_inline [Optional[false], Optional[false]]
        dont_inline [Optional[true], Optional[true]]
        log Optional.empty
        print_assembly Optional[true]
        print_inline Optional.empty
      }
      WB error: failed to blocking compile at level 4 method compiler.compilercontrol.share.pool.sub.KlassDup::smethod
      Checking expected compilation state: {
        method: public static java.lang.String compiler.compilercontrol.share.pool.sub.KlassDup.smethod(int,int[])
        compile [Optional[false], Optional[false]]
        force_inline [Optional[false], Optional[false]]
        dont_inline [Optional[true], Optional[true]]
        log Optional.empty
        print_assembly Optional[true]
        print_inline Optional.empty
      }
      WB error: failed to blocking compile at level 4 method compiler.compilercontrol.share.pool.sub.KlassDup::smethod
      Checking expected compilation state: {
        method: public static java.lang.Integer compiler.compilercontrol.share.pool.sub.KlassDup.smethod(java.lang.Integer)
        compile [Optional[false], Optional[false]]
        force_inline [Optional[false], Optional[false]]
        dont_inline [Optional[true], Optional[true]]
        log Optional.empty
        print_assembly Optional[true]
        print_inline Optional.empty
      }
      WB error: failed to blocking compile at level 4 method compiler.compilercontrol.share.pool.sub.KlassDup::smethod
      Checking expected compilation state: {
        method: public void compiler.compilercontrol.share.pool.subpack.Klass.method(int,java.lang.String[],java.lang.Integer,byte[],double[][])
        compile [Optional[false], Optional[false]]
        force_inline [Optional[false], Optional[false]]
        dont_inline [Optional[true], Optional[true]]
        log Optional.empty
        print_assembly Optional.empty
        print_inline Optional.empty
      }
      ];
       stderr: [Java HotSpot(TM) 64-Bit Server VM warning: c1: printing of assembly code is enabled; turning on DebugNonSafepoints to gain additional output
      Java HotSpot(TM) 64-Bit Server VM warning: c2: printing of assembly code is enabled; turning on DebugNonSafepoints to gain additional output
      Java HotSpot(TM) 64-Bit Server VM warning: c1: printing of assembly code is enabled; turning on DebugNonSafepoints to gain additional output
      Java HotSpot(TM) 64-Bit Server VM warning: c2: printing of assembly code is enabled; turning on DebugNonSafepoints to gain additional output
      Java HotSpot(TM) 64-Bit Server VM warning: c1: printing of assembly code is enabled; turning on DebugNonSafepoints to gain additional output
      Java HotSpot(TM) 64-Bit Server VM warning: c2: printing of assembly code is enabled; turning on DebugNonSafepoints to gain additional output
      Java HotSpot(TM) 64-Bit Server VM warning: c1: printing of assembly code is enabled; turning on DebugNonSafepoints to gain additional output
      Java HotSpot(TM) 64-Bit Server VM warning: c2: printing of assembly code is enabled; turning on DebugNonSafepoints to gain additional output
      Exception in thread "main" java.lang.RuntimeException: FAILED: method public void compiler.compilercontrol.share.pool.subpack.Klass.method(int,java.lang.String[],java.lang.Integer,byte[],double[][]) compilable: true, but should: false on required level: 4: expected true to equal false
      at jdk.test.lib.Asserts.fail(Asserts.java:594)
      at jdk.test.lib.Asserts.assertEquals(Asserts.java:205)
      at jdk.test.lib.Asserts.assertEQ(Asserts.java:178)
      at compiler.compilercontrol.share.actions.CompileAction.checkCompilation(CompileAction.java:90)
      at compiler.compilercontrol.share.actions.CompileAction.checkCompiled(CompileAction.java:74)
      at compiler.compilercontrol.share.actions.BaseAction.lambda$check$2(BaseAction.java:141)
      at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
      at compiler.compilercontrol.share.actions.BaseAction.check(BaseAction.java:139)
      at compiler.compilercontrol.share.actions.BaseAction.communicate(BaseAction.java:100)
      at compiler.compilercontrol.share.actions.BaseAction.main(BaseAction.java:59)
      ]
       exitValue = 1

      java.lang.RuntimeException: Expected to get exit value of [0], exit value is: [1]
      at jdk.test.lib.process.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:490)
      at compiler.compilercontrol.share.scenario.Scenario.execute(Scenario.java:118)
      at compiler.compilercontrol.share.MultiCommand.test(MultiCommand.java:103)
      at compiler.compilercontrol.mixed.RandomValidCommandsTest.main(RandomValidCommandsTest.java:43)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:578)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
      at java.base/java.lang.Thread.run(Thread.java:1591)

      JavaTest Message: Test threw exception: java.lang.RuntimeException
      JavaTest Message: shutting down test

      result: Error. Agent error: java.lang.Exception: Agent 11 timed out with a timeout of 2400 seconds; check console log for any additional details

            Unassigned Unassigned
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: