RFR: 8287442: Reduce list to array conversions in java.lang.invoke.MethodHandles [v3]

Jorn Vernee jvernee at openjdk.java.net
Fri Jun 3 17:23:29 UTC 2022


On Fri, 3 Jun 2022 17:05:19 GMT, Claes Redestad <redestad at openjdk.org> wrote:

>> In preparation of #8855 this PR refactors the conversions from `List` to array and array to `List`, reducing the number of conversions when calling `MethodHandles.dropArguments` in particular. This remove about ~5% of allocations on the `StringConcatFactoryBootstraps` microbenchmark.
>
> Claes Redestad has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Jorn review: Drop boolean, rename internal variant dropArgumentsTrusted

Marked as reviewed by jvernee (Reviewer).

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

PR: https://git.openjdk.java.net/jdk/pull/8923


More information about the core-libs-dev mailing list