RFR: 8315771: [JVMCI] Resolution of bootstrap methods with int[] static arguments
Doug Simon
dnsimon at openjdk.org
Wed Sep 6 12:01:42 UTC 2023
On Wed, 6 Sep 2023 11:24:10 GMT, Sacha Coppey <duke at openjdk.org> wrote:
> Currently, jdk.vm.ci.meta.ConstantPool.lookupBootstrapMethodInvocation does not support static arguments of type int[].
>
> Supporting those static arguments allows to correctly lookup the BootstrapMethodInvocation of some DynamicConstant.
>
> To lookup the constant at the index in the static arguments index list, an overloaded version of this method is required:
>
>
> /**
> * Gets the constant pool index of the pool entry associated with the
> * index in the static arguments list of a bootstrap method.
> *
> * @param index a constant pool index
> * @return the constant pool index associated with the static argument
> */
> int bootstrapArgumentIndexAt(int index)
src/jdk.internal.vm.ci/share/classes/jdk/vm/ci/meta/ConstantPool.java line 173:
> 171: }
> 172:
> 173: /**
This is very confusing documentation. It's not clear what index or entry you are referring to each time you say "index". Please provide a concrete example.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/15588#discussion_r1317172565
More information about the hotspot-compiler-dev
mailing list