--- old/src/share/vm/opto/runtime.cpp 2016-07-06 19:19:55.430446002 +0300 +++ new/src/share/vm/opto/runtime.cpp 2016-07-06 19:19:55.341446000 +0300 @@ -72,6 +72,7 @@ #include "runtime/vframe_hp.hpp" #include "utilities/copy.hpp" #include "utilities/preserveException.hpp" +#include "jvmtiThreadState.hpp" // For debugging purposes: @@ -1451,6 +1452,9 @@ } #endif + JvmtiThreadState *state = thread->jvmti_thread_state(); + state->set_exception_detected(); + thread->set_vm_result(exception); // Frame not compiled (handles deoptimization blob) return SharedRuntime::raw_exception_handler_for_return_address(thread, ret_pc);