changeset 11843:7f23e809f6cf

8163962: [JVMCI] integrate VarHandles Summary: add VarHandle support to JVMCI Reviewed-by: psandoz, iveresov Contributed-by: Doug Simon <doug.simon@oracle.com>
author iveresov
date Mon, 15 Aug 2016 14:08:01 -0700
parents 397565766eb4
children fefcad79cedf ef326749824a 6a8930622dc3
files src/share/vm/jvmci/jvmciEnv.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/jvmci/jvmciEnv.cpp	Thu Aug 11 16:22:08 2016 -0700
+++ b/src/share/vm/jvmci/jvmciEnv.cpp	Mon Aug 15 14:08:01 2016 -0700
@@ -342,7 +342,7 @@
   Symbol* sig_sym  = cpool->signature_ref_at(index);
 
   if (cpool->has_preresolution()
-      || (holder() == SystemDictionary::MethodHandle_klass() &&
+      || ((holder() == SystemDictionary::MethodHandle_klass() || holder() == SystemDictionary::VarHandle_klass()) &&
           MethodHandles::is_signature_polymorphic_name(holder(), name_sym))) {
     // Short-circuit lookups for JSR 292-related call sites.
     // That is, do not rely only on name-based lookups, because they may fail