--- old/src/share/vm/runtime/sharedRuntime.cpp 2015-06-05 16:15:25.580929970 -0400 +++ new/src/share/vm/runtime/sharedRuntime.cpp 2015-06-05 16:15:24.894287934 -0400 @@ -732,6 +732,8 @@ if (StackTraceInThrowable) { java_lang_Throwable::fill_in_stack_trace(exception); } + // Increment counter for hs_err file reporting + Atomic::inc(&Exceptions::_stack_overflow_errors); throw_and_post_jvmti_exception(thread, exception); JRT_END