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

Claes Redestad redestad at openjdk.org
Fri Apr 19 07:42:19 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.

Claes Redestad has updated the pull request incrementally with two additional commits since the last revision:

 - Copyright
 - Formatting

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/18845/files
  - new: https://git.openjdk.org/jdk/pull/18845/files/86ccbbba..b67ee397

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=18845&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18845&range=01-02

  Stats: 3 lines in 1 file changed: 0 ins; 0 del; 3 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