hotspot/src/share/vm/runtime/sharedRuntime.cpp
changeset 35108 ccb4e1f2a6cf
parent 35086 bbf32241d851
child 35135 dd2ce9021031
--- a/hotspot/src/share/vm/runtime/sharedRuntime.cpp	Thu Dec 10 14:51:54 2015 +0300
+++ b/hotspot/src/share/vm/runtime/sharedRuntime.cpp	Fri Dec 11 15:03:11 2015 +0300
@@ -1078,10 +1078,7 @@
   address pc = vfst.frame_pc();
   { // Get call instruction under lock because another thread may be busy patching it.
     MutexLockerEx ml_patch(Patching_lock, Mutex::_no_safepoint_check_flag);
-    if (NativeCall::is_call_before(pc)) {
-      NativeCall* ncall = nativeCall_before(pc);
-      return caller_nm->attached_method(ncall->instruction_address());
-    }
+    return caller_nm->attached_method_before_pc(pc);
   }
   return NULL;
 }