RFR: 7903585: Revisit variadic support

Maurizio Cimadamore mcimadamore at openjdk.org
Fri Dec 1 14:17:41 UTC 2023


On Fri, 1 Dec 2023 14:06:45 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:

>> Ugh - because the method handle depends on the layout parameter. But if that's the case, what's the benefit of the holder class? I'd thought that to get maximum performance, the specialized method handle had to be a constant.
>
> We re-link the MH every time, so it is not a constant. Note that it depends on `layouts`.

Yes, but if a client wants to stash an invoker with given shape in a static final field, then being able to trust that MH would be important I think.

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

PR Review Comment: https://git.openjdk.org/jextract/pull/149#discussion_r1412154968


More information about the jextract-dev mailing list