--- old/src/share/vm/interpreter/interpreterRuntime.cpp 2018-01-24 01:41:50.781780757 -0800 +++ new/src/share/vm/interpreter/interpreterRuntime.cpp 2018-01-24 01:41:50.656769378 -0800 @@ -320,6 +320,8 @@ Handle exception = get_preinitialized_exception( SystemDictionary::StackOverflowError_klass(), CHECK); + // Increment counter for hs_err file reporting + Atomic::inc(&Exceptions::_stack_overflow_errors); THROW_HANDLE(exception); IRT_END