-
Enhancement
-
Resolution: Fixed
-
P4
-
25
-
b26
Currently from the jdk.vm.ci.meta.ConstantPool, BootstrapMethodInvocations can be retrieved via calling lookupBootstrapMethodInvocation and passing (i) for indys an index into the ResolvedIndyEntry array or (ii) for condys its cpi.
As an alternative, it would be convenient to directly retrieve all BootstrapMethodInvocations for indys or condys from a constant pool without needing to provide additional information.
This would allow one to not have to search through the bytecodes of all methods to find all indys and/or having to walk the constant pool to find all condy entries.
In addition, we should add support to directly resolve and lookup the BSM results from a given BootstrapMethodInvocation instance, without the user needing to know what the BSM's underlying indy index or cpi is.
As an alternative, it would be convenient to directly retrieve all BootstrapMethodInvocations for indys or condys from a constant pool without needing to provide additional information.
This would allow one to not have to search through the bytecodes of all methods to find all indys and/or having to walk the constant pool to find all condy entries.
In addition, we should add support to directly resolve and lookup the BSM results from a given BootstrapMethodInvocation instance, without the user needing to know what the BSM's underlying indy index or cpi is.
- links to
-
Commit(master) openjdk/jdk/0352477f
-
Review(master) openjdk/jdk/25420