RFR: 8315771: [JVMCI] Resolution of bootstrap methods with int[] static arguments [v2]
Sacha Coppey
duke at openjdk.org
Wed Sep 6 17:47:42 UTC 2023
On Wed, 6 Sep 2023 16:36:25 GMT, Doug Simon <dnsimon at openjdk.org> wrote:
> Are you referring to BootstrapMethodInvocation.getStaticArguments() whose return type is List<JavaConstant>, not int[]?
It is indeed the list returned by `BootstrapMethodInvocation.getStaticArguments()`. In this case, we have in fact a List<PrimitiveConstant> which corresponds to the int[], but it is true it is confusing, I will rephrase it.
> That's not consistent with [the code](https://github.com/openjdk/jdk/blob/bd477810b176696e0fd043f5594663ebcf9884cf/src/hotspot/share/jvmci/jvmciCompilerToVM.cpp#L830-L835).
In this case, the arguments come from [here](https://github.com/openjdk/jdk/blob/bd477810b176696e0fd043f5594663ebcf9884cf/src/hotspot/share/interpreter/bootstrapInfo.cpp#L205-L208), which are always only two elements.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/15588#discussion_r1317631874
More information about the hotspot-compiler-dev
mailing list