RFR: 8351748: Classes of method handles in AOT cache should be AOT-inited
Chen Liang
liach at openjdk.org
Wed Mar 12 04:28:53 UTC 2025
On Wed, 12 Mar 2025 04:09:24 GMT, Ioi Lam <iklam at openjdk.org> wrote:
> 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.
As I know VarHandle can link to implementation classes via VarForm. Unfortunately I don't know if the "class uninitialized" problem can happen on a cached VarHandle, might be worth to try out.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/24004#issuecomment-2716409998
More information about the hotspot-runtime-dev
mailing list