RFR: 8330595: Invoke ObjectMethods::bootstrap method exactly [v3]

Mandy Chung mchung at openjdk.org
Fri Apr 19 17:15:57 UTC 2024


On Fri, 19 Apr 2024 07:42:19 GMT, Claes Redestad <redestad at openjdk.org> wrote:

>> Investigating a recent regression in mainline I realized we have an opportunity to improve the bootstrap overheads of ObjectMethods::bootstrap by using `invokeExact` in a way similar to what we already do for LMF and SCF BSMs. This avoids generating type checking adapters and equates to a one-off startup win of around 5ms in any app that ever has the need to spin up a toString, equals or hashCode method on a record.
>
> Claes Redestad has updated the pull request incrementally with two additional commits since the last revision:
> 
>  - Copyright
>  - Formatting

LGTM

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

Marked as reviewed by mchung (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/18845#pullrequestreview-2011967709


More information about the core-libs-dev mailing list