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)
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)
- relates to
-
JDK-8316699 TestDynamicConstant.java fails with release VMs
- Resolved
-
JDK-8316700 Test compiler/jvmci/jdk.vm.ci.hotspot.test/src/jdk/vm/ci/hotspot/test/TestDynamicConstant.java fails after JDK-8315771
- Closed