RFR: 8266015: Implement AdapterHandlerLibrary lookup fast-path for common adapters [v2]

Claes Redestad redestad at openjdk.java.net
Thu Apr 29 14:47:15 UTC 2021


> This patch refactors AdapterHandlerLibrary initialization so that we can initialize a handful of commonly used adapters early during bootstrap, and avoid taking the AdapterHandlerLibrary_lock when looking up these adapters.
> 
> Since the 5 most common adapters plus the abstract adapter constitutes roughly 60% of the method shapes loaded and linked on a Hello World, this means a relatively significant startup optimization (~2M insns on Hello World); most of the win is in lookup code that will be a significant part of the cost of class loading even when no adapters need to be generated.
> 
> This enhancement partially recuperates the regression reported in https://bugs.openjdk.java.net/browse/JDK-8265523

Claes Redestad has updated the pull request incrementally with one additional commit since the last revision:

  Fix as_basic_args_string for adapters with many args, restore NULL-returning behavior

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

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/3706/files
  - new: https://git.openjdk.java.net/jdk/pull/3706/files/0ace677e..31c8abbf

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=3706&range=01
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=3706&range=00-01

  Stats: 11 lines in 1 file changed: 5 ins; 0 del; 6 mod
  Patch: https://git.openjdk.java.net/jdk/pull/3706.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/3706/head:pull/3706

PR: https://git.openjdk.java.net/jdk/pull/3706


More information about the hotspot-runtime-dev mailing list