hotspot/src/share/vm/c1/c1_Runtime1.cpp
changeset 11572 84afef481892
parent 10972 ef164805934c
child 11636 3c07b54482a5
--- a/hotspot/src/share/vm/c1/c1_Runtime1.cpp	Thu Jan 26 16:49:22 2012 +0100
+++ b/hotspot/src/share/vm/c1/c1_Runtime1.cpp	Thu Jan 26 12:15:24 2012 -0800
@@ -413,8 +413,9 @@
     }
     bci = branch_bci + offset;
   }
-
+  assert(!HAS_PENDING_EXCEPTION, "Should not have any exceptions pending");
   osr_nm = CompilationPolicy::policy()->event(enclosing_method, method, branch_bci, bci, level, nm, THREAD);
+  assert(!HAS_PENDING_EXCEPTION, "Event handler should not throw any exceptions");
   return osr_nm;
 }