Integrated: 8369296: Add fast class init checks in interpreter for resolving ConstantPool entries for static field

Ashutosh Mehra asmehra at openjdk.org
Tue Oct 14 18:17:59 UTC 2025


On Tue, 7 Oct 2025 14:25:47 GMT, Ashutosh Mehra <asmehra at openjdk.org> wrote:

> This patch adds fast clinit barrier in the interpreter when resolving cp entry for a static field.
> 
> Testing: tested x86-64 by running `hotspot_runtime` group
> Specifically, `runtime/clinit/ClassInitBarrier.java` fails if the block for adding `clinit_barrier` is commented out in `TemplateTable::resolve_cache_and_index_for_field`

This pull request has now been integrated.

Changeset: 622a611c
Author:    Ashutosh Mehra <asmehra at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/622a611c338ba766bc1a70c95e8241d1bddf6add
Stats:     228 lines in 6 files changed: 126 ins; 64 del; 38 mod

8369296: Add fast class init checks in interpreter for resolving ConstantPool entries for static field

Co-authored-by: Vladimir Ivanov <vlivanov at openjdk.org>
Co-authored-by: Amit Kumar <amitkumar at openjdk.org>
Co-authored-by: Fei Yang <fyang at openjdk.org>
Co-authored-by: Martin Doerr <mdoerr at openjdk.org>
Reviewed-by: mdoerr, vlivanov, kvn, amitkumar, fyang, mli

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

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


More information about the hotspot-dev mailing list