RFR: 8160821: VarHandle accesses are penalized when argument conversion is required [v8]
Chen Liang
liach at openjdk.org
Tue Dec 9 14:42:22 UTC 2025
On Tue, 9 Dec 2025 11:33:31 GMT, ExE Boss <duke at openjdk.org> wrote:
>> I mean a filter method handle may keep other classes alive in addition to just its types. This is not possible from just checking the types. The vform method type is sufficient, because the types from the filter method type is always in one of the indirect layers.
>
> Also, it’s possible for intermediate `MethodHandle`s used as part of `MethodHandle` combinators to refer to types from different class loaders.
It is, but after all, there can be similar resource leak risks from calling LambdaMetafactory or other APIs too. We expect AccessDescriptor construction to be mostly limited to specific sites.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/28585#discussion_r2602958025
More information about the core-libs-dev
mailing list