RFR: 8369418: Identify owning class for KlassTrainingData in AOT map output [v2]

Ioi Lam iklam at openjdk.org
Fri Oct 10 00:38:04 UTC 2025


On Thu, 9 Oct 2025 17:48:00 GMT, María Arias de Reyna Domínguez <duke at openjdk.org> wrote:

>> Contains patches for: https://bugs.openjdk.org/browse/JDK-8363440
>> Fixes: https://bugs.openjdk.org/browse/JDK-8369418
>> 
>> Right now, the AOT Map displays the KlassTrainingData like this:
>> 
>> 
>> 0x00000008002aa5e0: @@ KlassTrainingData 40
>> 0x00000008002ac260: @@ KlassTrainingData 40
>> 
>> 
>> which doesn't provide any context on what class is this training for.
>> 
>> Modify the AOT Map Logger so we can link the class to its training data:
>> 
>> 
>> 0x00000008007d5940: @@ KlassTrainingData 40 jdk.internal.loader.BuiltinClassLoader
>> 0x0000000800815398: @@ KlassTrainingData 40 java.lang.invoke.DirectMethodHandle
>> 0x00000008008791f0: @@ KlassTrainingData 40 java.util.HashSet
>> 0x00000008008bd980: @@ KlassTrainingData 40 java.lang.module.ModuleDescriptor$Exports
>> 0x00000008008db8e8: @@ KlassTrainingData 40 java.lang.invoke.InvokerBytecodeGenerator
>
> María Arias de Reyna Domínguez has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Changing the include by a forward declaration

Looks good to me

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

Marked as reviewed by iklam (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/27715#pullrequestreview-3321006817


More information about the hotspot-runtime-dev mailing list