RFR: 8339800: Prefer invokeBasic in BootstrapMethodInvokers

Jorn Vernee jvernee at openjdk.org
Tue Sep 10 00:02:04 UTC 2024


On Mon, 9 Sep 2024 23:52:41 GMT, Claes Redestad <redestad at openjdk.org> wrote:

> Switching to `invokeBasic` for type-check 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.

Marked as reviewed by jvernee (Reviewer).

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

PR Review: https://git.openjdk.org/jdk/pull/20926#pullrequestreview-2291133181


More information about the core-libs-dev mailing list