hotspot/src/share/vm/prims/methodHandles.cpp
changeset 34236 4558141028a9
parent 34195 89011d12ebd3
parent 34229 892795cc82fe
child 34317 e93b85bf4cc2
--- a/hotspot/src/share/vm/prims/methodHandles.cpp	Thu Nov 26 19:16:37 2015 +0100
+++ b/hotspot/src/share/vm/prims/methodHandles.cpp	Fri Nov 27 18:35:43 2015 +0100
@@ -680,7 +680,7 @@
   case IS_METHOD:
     {
       CallInfo result;
-      LinkInfo link_info(defc, name, type, caller, caller.not_null());
+      LinkInfo link_info(defc, name, type, caller);
       {
         assert(!HAS_PENDING_EXCEPTION, "");
         if (ref_kind == JVM_REF_invokeStatic) {
@@ -717,7 +717,7 @@
   case IS_CONSTRUCTOR:
     {
       CallInfo result;
-      LinkInfo link_info(defc, name, type, caller, caller.not_null());
+      LinkInfo link_info(defc, name, type, caller);
       {
         assert(!HAS_PENDING_EXCEPTION, "");
         if (name == vmSymbols::object_initializer_name()) {
@@ -738,7 +738,7 @@
       fieldDescriptor result; // find_field initializes fd if found
       {
         assert(!HAS_PENDING_EXCEPTION, "");
-        LinkInfo link_info(defc, name, type, caller, /*check_access*/false);
+        LinkInfo link_info(defc, name, type, caller, LinkInfo::skip_access_check);
         LinkResolver::resolve_field(result, link_info, Bytecodes::_nop, false, THREAD);
         if (HAS_PENDING_EXCEPTION) {
           return empty;