RFR: 8350118: Simplify the layout access VarHandle [v2]

Maurizio Cimadamore mcimadamore at openjdk.org
Tue Feb 25 09:54:00 UTC 2025


On Mon, 24 Feb 2025 19:11:23 GMT, Chen Liang <liach at openjdk.org> wrote:

> I think direct var handles are quite cheap already and don't really need caching. What really worth caching should be the combinators and the VH derived from those combinators.

Right -- and one big advantage of this PR, if I'm correct, is that if you have a VH to access a single field, that will be a non-strided VH with a static offset (saved in the VH instance). So no adaptation is required (meaning no spinning of bytecodes) and, also, var handle guards will apply too. This is a very good result!

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

PR Review Comment: https://git.openjdk.org/jdk/pull/23720#discussion_r1969394463


More information about the build-dev mailing list