RFR: 8367910: Reduce warnings about unsupported classes in AOT cache creation

Ioi Lam iklam at openjdk.org
Thu Sep 25 20:02:58 UTC 2025


On Thu, 25 Sep 2025 02:30:53 GMT, David Holmes <dholmes at openjdk.org> wrote:

>> Currently AOT cache creation may print lots of warning (depending on the actions performed by the application's training run). Most of these warnings are harmless and are caused by JVM limitations; there's nothing that the user can do about them:
>> 
>> 
>> [1.096s][warning][aot] Skipping jdk/internal/event/Event: JFR event class
>> [1.096s][warning][aot] Skipping jdk/jfr/Event: JFR event class
>> [1.099s][warning][aot] Skipping jdk/proxy1/$Proxy14: Unsupported location
>> [1.100s][warning][aot] Skipping jdk/proxy1/$Proxy12: Unsupported location
>> [1.100s][warning][aot] Skipping jdk/proxy1/$Proxy11: Unsupported location
>> 
>> 
>> This PR moves most of these warnings to the "info" level. The only messages that are still logged in the "warning" levels are:
>> 
>> - class is in an error state
>> - class failed verification
>> 
>> These could indicate issues with the application so it's good to let the user know.
>
> Seems reasonable.
> 
> Thanks

Thanks @dholmes-ora @vnkozlov @shipilev for the review

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

PR Comment: https://git.openjdk.org/jdk/pull/27480#issuecomment-3335740737


More information about the hotspot-dev mailing list