hotspot/src/share/vm/ci/ciMethod.cpp
changeset 34236 4558141028a9
parent 34185 ee71c590a456
parent 34229 892795cc82fe
child 34317 e93b85bf4cc2
--- a/hotspot/src/share/vm/ci/ciMethod.cpp	Thu Nov 26 19:16:37 2015 +0100
+++ b/hotspot/src/share/vm/ci/ciMethod.cpp	Fri Nov 27 18:35:43 2015 +0100
@@ -786,7 +786,8 @@
    Symbol* h_name      = name()->get_symbol();
    Symbol* h_signature = signature()->get_symbol();
 
-   LinkInfo link_info(h_resolved, h_name, h_signature, caller_klass, check_access);
+   LinkInfo link_info(h_resolved, h_name, h_signature, caller_klass,
+                      check_access ? LinkInfo::needs_access_check : LinkInfo::skip_access_check);
    methodHandle m;
    // Only do exact lookup if receiver klass has been linked.  Otherwise,
    // the vtable has not been setup, and the LinkResolver will fail.