RFR: 8315771: [JVMCI] Resolution of bootstrap methods with int[] static arguments
Sacha Coppey
duke at openjdk.org
Wed Sep 6 11:32:00 UTC 2023
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)
-------------
Commit messages:
- Implement lookup of bootstrap methods with static arguments of type int[]
Changes: https://git.openjdk.org/jdk/pull/15588/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=15588&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8315771
Stats: 37 lines in 4 files changed: 30 ins; 3 del; 4 mod
Patch: https://git.openjdk.org/jdk/pull/15588.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/15588/head:pull/15588
PR: https://git.openjdk.org/jdk/pull/15588
More information about the hotspot-compiler-dev
mailing list