RFR: 8156916: intrinsify MethodHandles.arrayConstructor()

Chen Liang liach at openjdk.org
Sun Apr 30 22:04:25 UTC 2023


On Sun, 30 Apr 2023 21:34:46 GMT, Jorn Vernee <jvernee at 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


More information about the core-libs-dev mailing list