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

Doug Simon dnsimon at openjdk.org
Mon Jun 2 11:16:53 UTC 2025


On Mon, 2 Jun 2025 08:39:31 GMT, Tom Shull <duke at openjdk.org> wrote:

>> 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 one additional commit since the last revision:
> 
>   reviewer feedback and update javadoc formatting

Looks good to me.

Please enable GitHub Actions on your JDK fork.

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

Marked as reviewed by dnsimon (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/25420#pullrequestreview-2887908832


More information about the hotspot-compiler-dev mailing list