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

Jorn Vernee jvernee at openjdk.org
Tue Oct 1 17:49:13 UTC 2024


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

>> 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

I think EXCLUDE would work, yes. True about CompileCommand having a global effect, so that won't work. (With a CompilerDirective file we could be more precise, not sure if it's worth it though).

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

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


More information about the core-libs-dev mailing list