Integrated: 8266015: Implement AdapterHandlerLibrary lookup fast-path for common adapters

Claes Redestad redestad at openjdk.java.net
Mon May 10 08:05:05 UTC 2021


On Tue, 27 Apr 2021 00:27:56 GMT, Claes Redestad <redestad at openjdk.org> wrote:

> 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

This pull request has now been integrated.

Changeset: 0f925d1f
Author:    Claes Redestad <redestad at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/0f925d1f58ffc0c56ae85a189798f8d99d90d443
Stats:     383 lines in 2 files changed: 229 ins; 65 del; 89 mod

8266015: Implement AdapterHandlerLibrary lookup fast-path for common adapters

Reviewed-by: iklam, coleenp

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

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


More information about the hotspot-runtime-dev mailing list