RFR: 8317269: Store old classes in linked state in AOT cache [v2]
Ioi Lam
iklam at openjdk.org
Thu Aug 14 20:51:10 UTC 2025
On Thu, 14 Aug 2025 18:43:42 GMT, Chen Liang <liach at openjdk.org> wrote:
> Does InstanceKlass have info on whether each method used the old verifier or StackMapTable?
The "fail over" verification happens on the entire class file. If a Java 6 class failed the new verification, it will be verified again with the old verifier.
Currently, such classes will be excluded from the AOT cache:
https://github.com/openjdk/jdk/blob/c5cbcac828e1c7aa845cf16e68f6306ae49e050c/src/hotspot/share/classfile/verifier.cpp#L231-L243
I will add a test case in this PR to make sure this case is covered.
I also created a new RFE to include such classes in the AOT cache: https://bugs.openjdk.org/browse/JDK-8365575
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/26754#discussion_r2277693229
More information about the hotspot-dev
mailing list