RFR: 8296960: [JVMCI] list HotSpotConstantPool.loadReferencedType to ConstantPool

Doug Simon dnsimon at openjdk.org
Mon Nov 14 20:38:21 UTC 2022


`HotSpotConstantPool.loadReferencedType(int cpi, int opcode, boolean initialize)` allows loading a type without triggering class initialization. This PR lifts this method up to `ConstantPool` so that this functionality can be used without depending on HotSpot-specific JVMCI classes.

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

Commit messages:
 - lift loadReferencedType with initialize parameter up to ConstantPool (GR-41975)

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

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


More information about the hotspot-compiler-dev mailing list