RFR: 7903585: Revisit variadic support [v2]

Jorn Vernee jvernee at openjdk.org
Fri Dec 1 14:40:40 UTC 2023


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

>> Field of lambda classes are trusted right, since it's a hidden class? So the captured MH will be a trusted instance field?
>
> FWIW, I had a record in an earlier iteration, but realized it wasn't needed, and using a lambda expression makes the generated code a bit more concise.

Ok, I did a quick experiment, and the JIT doesn't seem to be able to constant fold through a captured MH field. But it does work for a record. I will switch to using a record then

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

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


More information about the jextract-dev mailing list