RFR: 8341127: Extra call to MethodHandle::asType from memory segment var handles fails to inline [v2]

Maurizio Cimadamore mcimadamore at openjdk.org
Tue Oct 1 16:25:37 UTC 2024


On Tue, 1 Oct 2024 16:07:35 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:

>> I see what you mean... I'll do some experiments and see how the current annotation affects the benchmark - if at all.
>
> The issue with using a compile command is that it will then work globally. So the benchmark would not really test much - besides checking that var handle access is slow when `asType` cannot inline. What I was trying to do here was to avoid `asType` being inlined into that `compileAsType` method - but I agree that the annotation I added isn't it.

I believe `EXCLUDE` is what I was reaching out for

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

PR Review Comment: https://git.openjdk.org/jdk/pull/21283#discussion_r1783160583


More information about the core-libs-dev mailing list