RFR: 8330595: Invoke ObjectMethods::bootstrap method exactly

Claes Redestad redestad at openjdk.org
Thu Apr 18 20:16:24 UTC 2024


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.

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

Commit messages:
 - 8330595: Invoke ObjectMethods::bootstrap method exactly

Changes: https://git.openjdk.org/jdk/pull/18845/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18845&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8330595
  Stats: 17 lines in 1 file changed: 16 ins; 1 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/18845.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/18845/head:pull/18845

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


More information about the core-libs-dev mailing list