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

CompilerControl log tests fail on Graal

XMLWordPrintable

      These tests fail on Graal:

      compiler/compilercontrol/commands/LogTest.java
      compiler/compilercontrol/commandfile/LogTest.java
      compiler/compilercontrol/jcmd/AddLogTest.java

      java.lang.RuntimeException: Compilation log expected. Met: <task_done success='1' nmsize='192' count='200' inlined_bytes='3' stamp='0.525'/>: expected false, was true
      at jdk.test.lib.Asserts.fail(Asserts.java:594)
      at jdk.test.lib.Asserts.assertFalse(Asserts.java:461)
      at compiler.compilercontrol.share.processors.LogProcessor.matchTasks(LogProcessor.java:108)
      at compiler.compilercontrol.share.processors.LogProcessor.accept(LogProcessor.java:77)
      at compiler.compilercontrol.share.processors.LogProcessor.accept(LogProcessor.java:47)
      at compiler.compilercontrol.share.scenario.Scenario.lambda$execute$0(Scenario.java:119)
      at java.base/java.util.ArrayList.forEach(ArrayList.java:1593)
      at compiler.compilercontrol.share.scenario.Scenario.execute(Scenario.java:119)
      at compiler.compilercontrol.share.SingleCommand.test(SingleCommand.java:54)
      at compiler.compilercontrol.commands.LogTest.main(LogTest.java:45)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      at java.base/java.lang.reflect.Method.invoke(Method.java:580)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
      at java.base/java.lang.Thread.run(Thread.java:1583)

      The above output is related the compilation of 'compiler.compilercontrol.share.pool.sub.Klass smethod ()Ljava/lang/String;' which has these entries in the compilation log:

      <nmethod compile_id='700' compiler='jvmci' level='4' entry='0x0000000137b862c0' size='648' address='0x0000000137b86110' relocation_offset='336' consts_offset='368' insts_offset='432' scopes_data_offset='576' scopes_pcs_offset='584' dependencies_offset='616' oops_offset='560' method='compiler.compilercontrol.share.pool.sub.Klass smethod ()Ljava/lang/String;' bytes='3' count='200' iicount='200' stamp='0.525'/>
      <task compile_id='700' method='compiler.compilercontrol.share.pool.sub.Klass smethod ()Ljava/lang/String;' bytes='3' count='200' iicount='200' stamp='0.522'>
      <task_done success='1' nmsize='192' count='200' inlined_bytes='3' stamp='0.525'/>
      </task>

      The test expects other entries for this compilation between the <task ...> and <task_done> elements

      At some point, Graal may be enhanced to produce more LogCompilation output. Until then, the test should be modified to lower its expectations when Graal is the compiler used for the test compilations.

            Unassigned Unassigned
            dnsimon Douglas Simon
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: