RFR: 8363440: Upgrade AOT map file logging to display more assets and asset content
María Arias de Reyna
duke at openjdk.org
Thu Oct 2 08:33:48 UTC 2025
Part of https://bugs.openjdk.org/browse/JDK-8363440
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)
-------------
Commit messages:
- JDK-8363440: Adding the method name to MethodCounters and MethodData
Changes: https://git.openjdk.org/jdk/pull/27603/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=27603&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8363440
Stats: 22 lines in 2 files changed: 22 ins; 0 del; 0 mod
Patch: https://git.openjdk.org/jdk/pull/27603.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/27603/head:pull/27603
PR: https://git.openjdk.org/jdk/pull/27603
More information about the hotspot-runtime-dev
mailing list