Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Make failed indy call sites still use specific-arity dispatch #4499
While fixing #4482, I discovered that indy paths not directly bound (e.g. initial or re-bind, failed sites, Java invocations, ...) always used varargs boxing and call path. This would negatively affect the performance of invokedynamic dispatches that never move on to direct binding.
The bind and rebind cases are not much of a concern; they immediately either directly bind or fail the site altogether. However, the failed cases, which includes sites with too many targets (think
Note that methods which only have a varargs call path continue to always box, but we have not built logic to arity-split varargs into multiple possible specific-arity paths. Only actual fixed-arity methods get this treatment currently.