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

LogCompilation can show bytes

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 10
    • 10
    • hotspot
    • b34

      Currently, LogCompilation shows the log like this:

      $ java -jar ./open/src/utils/LogCompilation/logc.jar hotspot_pid19693.log
      1 java.lang.StringLatin1::hashCode (unknown bytes)
      4 jdk.internal.misc.Unsafe::getObjectAcquire (unknown bytes)
      3 java.util.concurrent.ConcurrentHashMap::tabAt (unknown bytes)

      But currently the bytes size is available in the log line:
      <task_queued compile_id='1' method='java.lang.StringLatin1 hashCode ([B)I' bytes='42' count='100' backedge_count='2048' iicount='100' level='3' stamp='0.049' comment='tiered' hot_count='100'/>

      So it could be:

      $ java -jar ./open/src/utils/LogCompilation/logc.jar hotspot_pid19693.log
      1 java.lang.StringLatin1::hashCode (42 bytes)
      4 jdk.internal.misc.Unsafe::getObjectAcquire (7 bytes)
      3 java.util.concurrent.ConcurrentHashMap::tabAt (22 bytes)

            ecaspole Eric Caspole
            ecaspole Eric Caspole
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: