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

Andrew Dinn adinn at openjdk.org
Thu Oct 9 07:56:13 UTC 2025


On Thu, 9 Oct 2025 07:33:28 GMT, María Arias de Reyna <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
>
> Some of the KlassTrainingData will not reflect a class name because of https://mail.openjdk.org/pipermail/leyden-dev/2025-October/002764.html

@Delawen You need another review -- perhaps from @iklam?

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

PR Comment: https://git.openjdk.org/jdk/pull/27715#issuecomment-3384594869


More information about the hotspot-runtime-dev mailing list