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

Ashutosh Mehra asmehra at openjdk.org
Tue Oct 7 14:34:25 UTC 2025


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`

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

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

Changes: https://git.openjdk.org/jdk/pull/27676/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=27676&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8369296
  Stats: 26 lines in 3 files changed: 24 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/27676.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/27676/head:pull/27676

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


More information about the hotspot-dev mailing list