On Sun, 30 Apr 2023 21:34:46 GMT, Jorn Vernee <jver...@openjdk.org> wrote:

> What kind of performance improvement are you seeing? Could you add a 
> comparison with a method handle that calls `Array::newInstance` bound to the 
> array type? (that should have the same performance as the current 
> implementation).

That explains why `NonInvocable` (delegates to Array.newInstance) isn't slower 
than `anewarray` opcode (`Invocable`) in the benchmark results above. I will 
drop this patch and close the related JBS issue as no longer applicable.

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

PR Comment: https://git.openjdk.org/jdk/pull/13735#issuecomment-1529146338

Reply via email to