RFR: 8160821: VarHandle accesses are penalized when argument conversion is required [v3]

Chen Liang liach at openjdk.org
Wed Dec 3 04:13:55 UTC 2025


On Wed, 3 Dec 2025 01:40:29 GMT, Vladimir Ivanov <vlivanov at openjdk.org> wrote:

> any captured adaptation is valid/compatible

Yes, if `vh` is a constant, any captured adaptation from `vh.getMethodHandle(mode).asType(symbolicMethodTypeInvoker)` is valid/compatible.

For thread safety, MethodHandle supports safe publication, so I think we are fine publishing this way.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/28585#discussion_r2583556067


More information about the hotspot-dev mailing list