RFR: 8283839: [JVMCI] add support for querying indy bootstrap method target and arguments
Paul Sandoz
psandoz at openjdk.java.net
Wed Apr 20 07:36:02 UTC 2022
On Sat, 16 Apr 2022 16:06:48 GMT, Doug Simon <dnsimon at openjdk.org> wrote:
> This PR adds support to JVMCI for obtaining the call info for the bootstrap method associated with an invokedynamic or constantdynamic constant pool entry.
>
> In the context of Native Image, this is necessary to be able to defer execution of select bootstrap methods to image run time (as opposed to executing the bootstrap method during Native Image build time).
>
> I've also included a minor change to adopt use of the `jvms` javadoc tag in JVMCI Java code. This is preferable to the HTML links previously used in that the latter refer to a specific JDK release.
src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotConstantPool.java line 597:
> 595: List<JavaConstant> staticArgumentsList;
> 596: if (staticArguments == null) {
> 597: staticArgumentsList = Collections.emptyList();
Suggestion:
staticArgumentsList = List.of();
src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.meta/src/jdk/vm/ci/meta/JavaKind.java line 104:
> 102: /**
> 103: * Returns the name of the kind as a single upper case character. For the void and primitive
> 104: * kinds, this is the <i>FieldType</i> term in table 4.3-A of JVMS @{jvms 4.3.2}. For
Suggestion:
* kinds, this is the <i>FieldType</i> term in table 4.3-A of JVMS {@jvms 4.3.2}. For
-------------
PR: https://git.openjdk.java.net/jdk/pull/8273
More information about the hotspot-dev
mailing list