diff -r d55c96b36b5f -r 60081f497e75 hotspot/src/share/vm/runtime/sharedRuntime.cpp --- a/hotspot/src/share/vm/runtime/sharedRuntime.cpp Mon Jun 08 15:40:28 2015 +0200 +++ b/hotspot/src/share/vm/runtime/sharedRuntime.cpp Tue Jun 09 10:26:25 2015 -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