RFR: 8353216: Improve VerifyMethodHandles for method handle linkers [v2]
Vladimir Ivanov
vlivanov at openjdk.org
Fri Apr 11 21:33:28 UTC 2025
On Sat, 29 Mar 2025 01:22:11 GMT, Vladimir Ivanov <vlivanov at openjdk.org> wrote:
>> Add extra verification logic into `MethodHandle::invokeBasic/linkTo*` to ensure that holder classes are properly initialized.
>>
>> The patch covers x86 and aarch64 platforms.
>>
>> There are some differences in expectations between invocation modes.
>> While `invokeStatic` assumes a clinit barrier (and `invokeBasic` just requires the holder class to be fully initialized), other invocation modes can only expect that class initialization has been initiated (due to class initialization failures and premature publication, instances of partially initialized classes can be observed).
>>
>> Testing: hs-tier1 - hs-tier4
>
> Vladimir Ivanov has updated the pull request incrementally with two additional commits since the last revision:
>
> - assert_different_registers on x86
> - jcc->jccb
Any reviews, please?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/23950#issuecomment-2798044119
More information about the hotspot-dev
mailing list