RFR: 8357660: [JVMCI] Add support for retrieving all BootstrapMethodInvocations directly from ConstantPool [v5]
duke
duke at openjdk.org
Wed Jun 4 13:49:59 UTC 2025
On Wed, 4 Jun 2025 08:07:40 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 with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains 12 additional commits since the last revision:
>
> - Merge remote-tracking branch 'origin/master' into JDK-8357660
> - Merge remote-tracking branch 'origin/master' into JDK-8357660
> - commit to trigger testing
> - commit to trigger testing
> - reviewer feedback and update javadoc formatting
> - complete changes
> - commit review suggestion
>
> Co-authored-by: Douglas Simon <doug.simon at oracle.com>
> - commit review suggestion
>
> Co-authored-by: Douglas Simon <doug.simon at oracle.com>
> - change to allow both indys and condys to be looked up all at once
> - address reviewer feedback
> - ... and 2 more: https://git.openjdk.org/jdk/compare/865473d8...c7f5c1a7
@teshull
Your change (at version c7f5c1a79a8ef8fdc7d50ee03b78ebc62b53fc83) is now ready to be sponsored by a Committer.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/25420#issuecomment-2940109500
More information about the hotspot-compiler-dev
mailing list