8163962: [JVMCI] integrate VarHandles
authoriveresov
Mon, 15 Aug 2016 14:08:01 -0700
changeset 40642 7f337136f657
parent 40376 15e772ff7ff4
child 40643 49539fc14e5a
child 40644 39e631ed7145
child 40646 c5dfe23b92b1
8163962: [JVMCI] integrate VarHandles Summary: add VarHandle support to JVMCI Reviewed-by: psandoz, iveresov Contributed-by: Doug Simon <doug.simon@oracle.com>
hotspot/src/share/vm/jvmci/jvmciEnv.cpp
--- a/hotspot/src/share/vm/jvmci/jvmciEnv.cpp	Thu Aug 11 16:22:08 2016 -0700
+++ b/hotspot/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