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

Improve TraceOptoParse to dump the bytecode name

    XMLWordPrintable

Details

    • b15

    Description

      While I was debugging with `TraceOptoParse`, I found it only prints the bci without the bytecode name.
      I had to map the bci to the bytecode manually again and again.
      It would be better to also dump the bytecode name.

      Before:
      ```
          568 503 4 jdk.internal.org.objectweb.asm.ByteVector::putUTF8 (144 bytes)
      Merging state at block #0 bci:0 with empty state on path 1
      Parsing block #0 at bci [0,11), successors: 1 2
       @ bci:0
       @ bci:1
      Uncommon trap reason='null_check' action='maybe_recompile' debug_id='0' at bci:1
      Merging state at block #0 bci:0 with empty state on path 1
      Parsing block #0 at bci [0,11), successors:
       @ bci:0
       @ bci:1
       @ bci:4
      Uncommon trap reason='null_check' action='maybe_recompile' debug_id='0' at bci:4
       @ bci:5
       @ bci:6
      Merging state at block #0 bci:0 with empty state on path 1
      ```

      After:
      ```
          571 507 4 jdk.internal.org.objectweb.asm.ByteVector::putUTF8 (144 bytes)
      Merging state at block #0 bci:0 with empty state on path 1
      Parsing block #0 at bci [0,11), successors: 1 2
       @ bci:0 aload_1
       @ bci:1 invokevirtual
      Uncommon trap reason='null_check' action='maybe_recompile' debug_id='0' at bci:1
      Merging state at block #0 bci:0 with empty state on path 1
      Parsing block #0 at bci [0,11), successors:
       @ bci:0 aload_0
       @ bci:1 getfield
       @ bci:4 arraylength
      Uncommon trap reason='null_check' action='maybe_recompile' debug_id='0' at bci:4
       @ bci:5 aload_0
       @ bci:6 invokevirtual
      Merging state at block #0 bci:0 with empty state on path 1
      ```

      Attachments

        Issue Links

          Activity

            People

              jiefu Jie Fu
              jiefu Jie Fu
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: