RFR: 8351748: Classes of method handles in AOT cache should be AOT-inited

Ioi Lam iklam at openjdk.org
Wed Mar 12 04:13:47 UTC 2025


Whenever we store a MethodHandle in the AOT cache, we need to make sure that the class of this method is aot-initialized. Otherwise, the JVM might execute a BSM without first initializing the class of this BSM.

Please see the bug report for detail analysis.

I also fixed a problem in related logging code.

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

Commit messages:
 - 8351748: Classes of method handles in the AOT cache should be AOT-initialized

Changes: https://git.openjdk.org/jdk/pull/24004/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=24004&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8351748
  Stats: 13 lines in 1 file changed: 12 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/24004.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/24004/head:pull/24004

PR: https://git.openjdk.org/jdk/pull/24004


More information about the hotspot-runtime-dev mailing list