Integrated: 8369037: Identify owning method for MethodData and MethodCounters in AOT map output
María Arias de Reyna
duke at openjdk.org
Fri Oct 3 08:00:57 UTC 2025
On Thu, 2 Oct 2025 08:26:54 GMT, María Arias de Reyna <duke at openjdk.org> wrote:
> Part of https://bugs.openjdk.org/browse/JDK-8369037
> Provides part of fixes needed to resolve 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)
This pull request has now been integrated.
Changeset: 2e783963
Author: María Arias de Reyna Domínguez <mariasde at ibm.com>
Committer: Roland Westrelin <roland at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/2e783963d21c8edd88e79226ca473cfe0e41335b
Stats: 24 lines in 2 files changed: 24 ins; 0 del; 0 mod
8369037: Identify owning method for MethodData and MethodCounters in AOT map output
Reviewed-by: iklam, asmehra, adinn, macarte
-------------
PR: https://git.openjdk.org/jdk/pull/27603
More information about the hotspot-runtime-dev
mailing list