Integrated: 8330595: Invoke ObjectMethods::bootstrap method exactly

Claes Redestad redestad at openjdk.org
Mon Apr 22 08:58:37 UTC 2024


On Thu, 18 Apr 2024 20:11:15 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.

This pull request has now been integrated.

Changeset: 35b30c81
Author:    Claes Redestad <redestad at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/35b30c81e0153a12881e622b861ee38c8166ef72
Stats:     17 lines in 1 file changed: 15 ins; 1 del; 1 mod

8330595: Invoke ObjectMethods::bootstrap method exactly

Reviewed-by: mchung

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

PR: https://git.openjdk.org/jdk/pull/18845


More information about the core-libs-dev mailing list