Integrated: 8320276: Improve class initialization barrier in TemplateTable::_new
Matias Saavedra Silva
matsaave at openjdk.org
Wed Jan 3 20:13:41 UTC 2024
On Wed, 6 Dec 2023 22:02:19 GMT, Matias Saavedra Silva <matsaave at openjdk.org> wrote:
> The class initialization barrier in TemplateTable::_new fast path check ensures that the class being instantiated is fully initialized. It can be improved by introducing additional fast path check when current thread is initializer thread as MacroAssembler::clinit_barrier() does. It avoids repeated calls into interpreter runtime for classes being initialized. This patch adds the optimization for x86 and aarch64. Verified with tier 1-5 tests.
>
> This change was tested with Spring Petclinic which reported the following startup times:
>
> Clean build: #### Booted and returned in 161941ms
> Patched build: #### Booted and returned in 160657ms
This pull request has now been integrated.
Changeset: 409a39ec
Author: Matias Saavedra Silva <matsaave at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/409a39ec8da83d6a0895e7e213604455ebf50485
Stats: 16 lines in 6 files changed: 6 ins; 2 del; 8 mod
8320276: Improve class initialization barrier in TemplateTable::_new
Reviewed-by: dholmes, fparain
-------------
PR: https://git.openjdk.org/jdk/pull/17006
More information about the hotspot-dev
mailing list