diff src/share/vm/prims/jvmtiExport.cpp @ 14521:29ccc4cbabca

Merge
author Gilles Duboscq <duboscq@ssw.jku.at>
date Wed, 12 Mar 2014 13:30:08 +0100
parents 016b6a289fc4
children 4ca6dc0799b6
line wrap: on
line diff
--- a/src/share/vm/prims/jvmtiExport.cpp	Tue Mar 11 15:34:06 2014 +0100
+++ b/src/share/vm/prims/jvmtiExport.cpp	Wed Mar 12 13:30:08 2014 +0100
@@ -2161,6 +2161,15 @@
   }
 }
 
+void JvmtiExport::clear_detected_exception(JavaThread* thread) {
+  assert(JavaThread::current() == thread, "thread is not current");
+
+  JvmtiThreadState* state = thread->jvmti_thread_state();
+  if (state != NULL) {
+    state->clear_exception_detected();
+  }
+}
+
 void JvmtiExport::oops_do(OopClosure* f) {
   JvmtiCurrentBreakpoints::oops_do(f);
   JvmtiVMObjectAllocEventCollector::oops_do_for_all_threads(f);