RFR: 8367910: Reduce warnings about unsupported classes in AOT cache creation
Ioi Lam
iklam at openjdk.org
Wed Sep 24 23:22:54 UTC 2025
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.
-------------
Commit messages:
- 8367910: Reduce warnings about unsupported classes in AOT cache creation
Changes: https://git.openjdk.org/jdk/pull/27480/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=27480&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8367910
Stats: 50 lines in 8 files changed: 18 ins; 5 del; 27 mod
Patch: https://git.openjdk.org/jdk/pull/27480.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/27480/head:pull/27480
PR: https://git.openjdk.org/jdk/pull/27480
More information about the hotspot-dev
mailing list