--- 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.