Integrated: 8339800: Prefer invokeBasic in BootstrapMethodInvokers
Claes Redestad
redestad at openjdk.org
Tue Sep 10 09:49:08 UTC 2024
On Mon, 9 Sep 2024 23:52:41 GMT, Claes Redestad <redestad at openjdk.org> wrote:
> Switching to `invokeBasic` for type-checked invokes in `BootstrapMethodInvokers` instead of `invokeExact` avoids some `MethodHandleNatives.linkMethod` calls during bootstrap. This brings a tiny but measurable once-per-bootstrap method win. Both before and after we lean on the static casts in BootstrapMethodInvokers to sanitize against type mismatches.
This pull request has now been integrated.
Changeset: 0d8e52b3
Author: Claes Redestad <redestad at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/0d8e52b382432674533c9b80565eadf39ae83c64
Stats: 6 lines in 1 file changed: 0 ins; 0 del; 6 mod
8339800: Prefer invokeBasic in BootstrapMethodInvokers
Reviewed-by: jvernee
-------------
PR: https://git.openjdk.org/jdk/pull/20926
More information about the core-libs-dev
mailing list