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

Identify owning method for MethodTrainingData and CompileTrainingData in AOT map output

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 26
    • hotspot

      MethodTrainingData and CompileTrainingData do not show to what method they belong to:

      ```
      $ cat aot.map | grep MethodTrainingData
      0x00000008019d54c0: @@ MethodTrainingData 96
      0x00000008019dcec8: @@ MethodTrainingData 96
      [...]

      $ cat aot.map | grep CompileTrainingData
      [...]
      0x000000080079c8a0: @@ CompileTrainingData 80
      0x00000008007a7660: @@ CompileTrainingData 80

      ```

      Add the method name to those lines in the AOT map to add more context. Also, for CompileTrainingData, add the level of compilation.

      The output should look like (note the number before the method signature on CompileTrainingData that represents the level):

      ```
      $ cat aot.map | grep CompileTrainingData
      0x000000080079c8a0: @@ CompileTrainingData 80 3 int java.lang.Byte.hashCode()
      0x00000008007a7660: @@ CompileTrainingData 80 3 java.lang.Object java.lang.ref.Reference.get()
      0x00000008007a76b0: @@ CompileTrainingData 80 4 java.lang.Object java.lang.ref.Reference.get()
      [...]

      $ cat aot.map | grep MethodTrainingData
      0x00000008007864c0: @@ MethodTrainingData 96 void java.lang.System.arraycopy(java.lang.Object, int, java.lang.Object, int, int)
      0x00000008007884f0: @@ MethodTrainingData 96 boolean java.lang.Module.isNamed()
      0x00000008007892f8: @@ MethodTrainingData 96 boolean java.lang.Module.implIsExportedOrOpen(java.lang.String, java.lang.Module, boolean)
      [...]
      ```

            mariasde María Arias de Reyna Domínguez
            mariasde María Arias de Reyna Domínguez
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: