RFR: 8339800: Prefer invokeBasic in BootstrapMethodInvokers
Claes Redestad
redestad at openjdk.org
Tue Sep 10 09:49:07 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.
Thanks for reviewing
-------------
PR Comment: https://git.openjdk.org/jdk/pull/20926#issuecomment-2340182102
More information about the core-libs-dev
mailing list