hotspot/src/share/vm/ci/ciMethod.cpp
changeset 38719 133bf85c3f36
parent 38177 b0c9cb06506b
child 39219 1b33aa56ed18
--- a/hotspot/src/share/vm/ci/ciMethod.cpp	Thu May 26 20:43:13 2016 -0400
+++ b/hotspot/src/share/vm/ci/ciMethod.cpp	Fri May 27 10:52:39 2016 -0400
@@ -789,7 +789,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.