8163962: [JVMCI] integrate VarHandles
Summary: add VarHandle support to JVMCI
Reviewed-by: psandoz, iveresov
Contributed-by: Doug Simon <doug.simon@oracle.com>
--- 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