--- old/src/share/vm/runtime/sharedRuntime.cpp 2018-01-24 01:41:53.788054407 -0800 +++ new/src/share/vm/runtime/sharedRuntime.cpp 2018-01-24 01:41:53.695045941 -0800 @@ -758,6 +758,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