RFR: 8357660: [JVMCI] Add support for retrieving all BootstrapMethodInvocations directly from ConstantPool [v3]

Tom Shull duke at openjdk.org
Mon Jun 2 19:12:19 UTC 2025


> This PR adds support for directly retrieving both all invokedynamic and all condy BootstrapMethodInvocations from a ConstantPool via the new method `List<BootstrapMethodInvocation> lookupBootstrapMethodInvocations(boolean invokeDynamic)`.
> 
> In addition, two methods are added to the BootstrapMethodInvocations:
> 1. `void resolve()`
> 2. `JavaConstant lookup()`
> 
> The combination of these two features allows one to directly interact with all BSM information of a given ConstantPool without having to iterate through all of the Classfile's methods to find all invokedynamic bytecodes and/or iterate through all Constant Pool entries.

Tom Shull has updated the pull request incrementally with two additional commits since the last revision:

 - commit to trigger testing
 - commit to trigger testing

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/25420/files
  - new: https://git.openjdk.org/jdk/pull/25420/files/60c39b5e..4d508fc4

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=25420&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=25420&range=01-02

  Stats: 0 lines in 0 files changed: 0 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/25420.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/25420/head:pull/25420

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


More information about the hotspot-compiler-dev mailing list