1.1 --- a/src/share/vm/interpreter/interpreterRuntime.cpp Wed Feb 21 11:11:07 2018 +0530 1.2 +++ b/src/share/vm/interpreter/interpreterRuntime.cpp Wed Mar 14 03:19:46 2018 -0700 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -320,6 +320,8 @@ 1.11 Handle exception = get_preinitialized_exception( 1.12 SystemDictionary::StackOverflowError_klass(), 1.13 CHECK); 1.14 + // Increment counter for hs_err file reporting 1.15 + Atomic::inc(&Exceptions::_stack_overflow_errors); 1.16 THROW_HANDLE(exception); 1.17 IRT_END 1.18