RFR: 8315771: [JVMCI] Resolution of bootstrap methods with int[] static arguments [v5]

Sacha Coppey duke at openjdk.org
Fri Sep 8 12:22:18 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)

Sacha Coppey has updated the pull request incrementally with one additional commit since the last revision:

  Add CachedBSMArgs to resolve arguments lazily instead of letting the user do so

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/15588/files
  - new: https://git.openjdk.org/jdk/pull/15588/files/093d0cef..4ec0a7b7

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=15588&range=04
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=15588&range=03-04

  Stats: 93 lines in 2 files changed: 53 ins; 39 del; 1 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