Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8362173 Upgrade AOT Cache logging to support viewing and browsing contents and usage
  3. JDK-8369037

Identify owning method for MethodData and MethodCounters in AOT map output

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: P4 P4
    • 26
    • 26
    • hotspot
    • master

      MethodCounters and MethodData do not show to what method they belong to:

      ```
      $ cat aot.map | grep "@@ MethodCounters"
      [...]
      0x0000000801e4c280: @@ MethodCounters 64

      $ cat aot.map | grep "@@ MethodData"
      [...]
      0x0000000801e44448: @@ MethodData 584
      ```

      Add the method name to the MethodCounters and MethodData lines in the AOT map to add more context like:

      ```$ cat aot.map | grep "@@ MethodCounters"
      [...]
      0x0000000801f8b9a8: @@ MethodCounters 64 void jdk.internal.access.SharedSecrets.setJavaLangAccess(jdk.internal.access.JavaLangAccess)
      0x0000000801f8be60: @@ MethodCounters 64 void java.lang.Object.notifyAll()

      $ cat aot.map | grep "@@ MethodData"
      [...]
      0x0000000801f700e0: @@ MethodData 728 int java.lang.module.ModuleDescriptor.hashCode()
      0x0000000801f81af0: @@ MethodData 688 java.lang.String java.lang.Class.cannotCastMsg(java.lang.Object)

      ```

            roland Roland Westrelin
            mariasde María Arias de Reyna Domínguez
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: