Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8357660

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

XMLWordPrintable

    • 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.

            tshull Tom Shull
            tshull Tom Shull
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: