equal
deleted
inserted
replaced
227 InstanceKlass* k = SystemDictionary::StackOverflowError_klass(); |
227 InstanceKlass* k = SystemDictionary::StackOverflowError_klass(); |
228 oop e = k->allocate_instance(CHECK); |
228 oop e = k->allocate_instance(CHECK); |
229 exception = Handle(THREAD, e); // fill_in_stack trace does gc |
229 exception = Handle(THREAD, e); // fill_in_stack trace does gc |
230 assert(k->is_initialized(), "need to increase java_thread_min_stack_allowed calculation"); |
230 assert(k->is_initialized(), "need to increase java_thread_min_stack_allowed calculation"); |
231 if (StackTraceInThrowable) { |
231 if (StackTraceInThrowable) { |
232 java_lang_Throwable::fill_in_stack_trace(exception, method()); |
232 java_lang_Throwable::fill_in_stack_trace(exception, method); |
233 } |
233 } |
234 // Increment counter for hs_err file reporting |
234 // Increment counter for hs_err file reporting |
235 Atomic::inc(&Exceptions::_stack_overflow_errors); |
235 Atomic::inc(&Exceptions::_stack_overflow_errors); |
236 } else { |
236 } else { |
237 // if prior exception, throw that one instead |
237 // if prior exception, throw that one instead |