diff -r 4f3ce9284781 -r af739d5ab23c src/share/vm/prims/jvmtiThreadState.hpp --- a/src/share/vm/prims/jvmtiThreadState.hpp Wed Jan 11 17:58:26 2012 -0500 +++ b/src/share/vm/prims/jvmtiThreadState.hpp Sat Jan 21 23:02:40 2012 -0500 @@ -165,6 +165,10 @@ inline bool is_exception_caught() { return _exception_caught; } inline void set_exception_detected() { _exception_detected = true; _exception_caught = false; } + inline void clear_exception_detected() { + _exception_detected = false; + assert(_exception_caught == false, "_exception_caught is out of phase"); + } inline void set_exception_caught() { _exception_caught = true; _exception_detected = false; }