Re: RFR: 8339800: Prefer invokeBasic in BootstrapMethodInvokers

2024-09-10 Thread Claes Redestad
On Mon, 9 Sep 2024 23:52:41 GMT, Claes Redestad 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 met

Re: RFR: 8339800: Prefer invokeBasic in BootstrapMethodInvokers

2024-09-09 Thread Jorn Vernee
On Mon, 9 Sep 2024 23:52:41 GMT, Claes Redestad 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 metho

RFR: 8339800: Prefer invokeBasic in BootstrapMethodInvokers

2024-09-09 Thread Claes Redestad
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 Boot