8163962: [JVMCI] integrate VarHandles

Add VarHandle support to JVMCI

Reviewed-by: psandoz, iveresov
This commit is contained in:
Doug Simon 2016-08-15 14:08:01 -07:00 committed by Igor Veresov
parent 19d25373bf
commit 72dcc9193e

View File

@ -342,7 +342,7 @@ methodHandle JVMCIEnv::get_method_by_index_impl(const constantPoolHandle& cpool,
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