RFR: 8369037: Upgrade AOT map file logging to display more assets and asset content [v2]

María Arias de Reyna duke at openjdk.org
Thu Oct 2 09:28:47 UTC 2025


On Thu, 2 Oct 2025 08:51:22 GMT, María Arias de Reyna <duke at openjdk.org> wrote:

>> Part of https://bugs.openjdk.org/browse/JDK-8369037
>> 
>> The AOT map file lists many objects without any kind of context of what they represent. For example, `MethodCounters` and `MethodData` do not show to what method they belong to. With this patch, now we can at least link the `MethodCounters` and `MethodData` to the `Method` they belong to.
>> 
>> Before:
>> 
>> $ cat aot.map | grep "@@ MethodCounters"
>> [...]
>> 0x0000000801e4c280: @@ MethodCounters    64
>> 
>> ``` bash
>> $ cat aot.map | grep "@@ MethodData"
>> [...]
>> 0x0000000801e44448: @@ MethodData        584
>> 
>> 
>> After:
>> 
>> $ 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()
>> 
>> ``` bash
>> $ 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)
>
> María Arias de Reyna has refreshed the contents of this pull request, and previous commits have been removed. The incremental views will show differences compared to the previous content of the PR. The pull request contains one new commit since the last revision:
> 
>   JDK-8363440: Adding the Method name to MethodCounters and MethodData

Adding it as subtask of the parent task because
<img width="839" height="169" alt="image" src="https://github.com/user-attachments/assets/57b3e7cc-0058-4cbf-b9cb-42a1f4b7b4f1" />

Changed the related issue

-------------

PR Comment: https://git.openjdk.org/jdk/pull/27603#issuecomment-3360100259
PR Comment: https://git.openjdk.org/jdk/pull/27603#issuecomment-3360109760


More information about the hotspot-runtime-dev mailing list