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

Tom Shull duke at openjdk.org
Wed Jun 4 13:54:00 UTC 2025


On Fri, 23 May 2025 17:37:14 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.

This pull request has now been integrated.

Changeset: 0352477f
Author:    Tom Shull <tom.shull at oracle.com>
Committer: Doug Simon <dnsimon at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/0352477ff5977b0010e62000adbde88026a49a7e
Stats:     144 lines in 5 files changed: 132 ins; 0 del; 12 mod

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

Reviewed-by: dnsimon, yzheng

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

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


More information about the graal-dev mailing list