src/share/vm/c1/c1_Runtime1.cpp

Print this page
rev 1122 : refactored to check all 3 can_post_exception bits and other Dan comments

@@ -435,11 +435,11 @@
   // enough space on the stack to do so.  Use fast exceptions only if the guard
   // pages are enabled.
   bool guard_pages_enabled = thread->stack_yellow_zone_enabled();
   if (!guard_pages_enabled) guard_pages_enabled = thread->reguard_stack();
 
-  if (JvmtiExport::can_post_exceptions()) {
+  if (thread->should_post_on_exceptions_flag()) {
     // To ensure correct notification of exception catches and throws
     // we have to deoptimize here.  If we attempted to notify the
     // catches and throws during this exception lookup it's possible
     // we could deoptimize on the way out of the VM and end back in
     // the interpreter at the throw site.  This would result in double