comparison src/share/vm/runtime/sharedRuntime.cpp @ 1213:6deeaebad47a

6902182: 4/4 Starting with jdwp agent should not incur performance penalty Summary: Rename can_post_exceptions support to can_post_on_exceptions. Add support for should_post_on_exceptions flag to permit per JavaThread optimizations. Reviewed-by: never, kvn, dcubed Contributed-by: tom.deneau@amd.com
author dcubed
date Mon, 01 Feb 2010 17:35:05 -0700
parents cf0685d550f1
children 7f8790caccb0
comparison
equal deleted inserted replaced
1196:f3345b7b01b4 1213:6deeaebad47a
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 }