hotspot/src/share/vm/runtime/sharedRuntime.cpp
changeset 4761 bdb7375a1fee
parent 4735 3d4e4ec0df67
child 4764 d15bb22d4d39
equal deleted inserted replaced
4744:40fc0ab5cd15 4761:bdb7375a1fee
   362   return result;
   362   return result;
   363 }
   363 }
   364 
   364 
   365 
   365 
   366 void SharedRuntime::throw_and_post_jvmti_exception(JavaThread *thread, Handle h_exception) {
   366 void SharedRuntime::throw_and_post_jvmti_exception(JavaThread *thread, Handle h_exception) {
   367   if (JvmtiExport::can_post_exceptions()) {
   367   if (JvmtiExport::can_post_on_exceptions()) {
   368     vframeStream vfst(thread, true);
   368     vframeStream vfst(thread, true);
   369     methodHandle method = methodHandle(thread, vfst.method());
   369     methodHandle method = methodHandle(thread, vfst.method());
   370     address bcp = method()->bcp_from(vfst.bci());
   370     address bcp = method()->bcp_from(vfst.bci());
   371     JvmtiExport::post_exception_throw(thread, method(), bcp, h_exception());
   371     JvmtiExport::post_exception_throw(thread, method(), bcp, h_exception());
   372   }
   372   }