changeset 22611:5baefb241788

restricted and documented constant pool entry types supported by resolveConstantInPool and resolvePossiblyCachedConstantInPool
author Doug Simon <doug.simon@oracle.com>
date Thu, 24 Sep 2015 13:58:05 +0200
parents 940b668f0809
children 976555bdc7c6
files jvmci/jdk.internal.jvmci.hotspot/src/jdk/internal/jvmci/hotspot/CompilerToVM.java
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/jvmci/jdk.internal.jvmci.hotspot/src/jdk/internal/jvmci/hotspot/CompilerToVM.java	Wed Sep 23 19:36:50 2015 +0200
+++ b/jvmci/jdk.internal.jvmci.hotspot/src/jdk/internal/jvmci/hotspot/CompilerToVM.java	Thu Sep 24 13:58:05 2015 +0200
@@ -163,8 +163,9 @@
     /**
      * Resolves the entry at index {@code cpi} in {@code constantPool} to an object.
      *
-     * The behavior of this method is undefined if {@code cpi} does not denote an entry that can be
-     * resolved to an object.
+     * The behavior of this method is undefined if {@code cpi} does not denote one of the following
+     * entry types: {@code JVM_CONSTANT_MethodHandle}, {@code JVM_CONSTANT_MethodHandleInError},
+     * {@code JVM_CONSTANT_MethodType} and {@code JVM_CONSTANT_MethodTypeInError}.
      */
     native Object resolveConstantInPool(HotSpotConstantPool constantPool, int cpi);
 
@@ -172,8 +173,8 @@
      * Resolves the entry at index {@code cpi} in {@code constantPool} to an object, looking in the
      * constant pool cache first.
      *
-     * The behavior of this method is undefined if {@code cpi} does not denote an entry that can be
-     * resolved to an object.
+     * The behavior of this method is undefined if {@code cpi} does not denote a
+     * {@code JVM_CONSTANT_String} entry.
      */
     native Object resolvePossiblyCachedConstantInPool(HotSpotConstantPool constantPool, int cpi);