< prev index next >

hotspot/src/share/vm/utilities/exceptions.cpp

Print this page

        

*** 78,88 **** // adequate stack space. // This can happen with stress testing a large value of StackShadowPages if (h_exception()->klass() == SystemDictionary::StackOverflowError_klass()) { InstanceKlass* ik = InstanceKlass::cast(h_exception->klass()); assert(ik->is_initialized(), ! "need to increase min_stack_allowed calculation"); } #endif // ASSERT if (thread->is_VM_thread() || !thread->can_call_java() --- 78,88 ---- // adequate stack space. // This can happen with stress testing a large value of StackShadowPages if (h_exception()->klass() == SystemDictionary::StackOverflowError_klass()) { InstanceKlass* ik = InstanceKlass::cast(h_exception->klass()); assert(ik->is_initialized(), ! "need to increase java_thread_min_stack_allowed calculation"); } #endif // ASSERT if (thread->is_VM_thread() || !thread->can_call_java()
*** 225,235 **** Handle exception; if (!THREAD->has_pending_exception()) { Klass* k = SystemDictionary::StackOverflowError_klass(); oop e = InstanceKlass::cast(k)->allocate_instance(CHECK); exception = Handle(THREAD, e); // fill_in_stack trace does gc ! assert(InstanceKlass::cast(k)->is_initialized(), "need to increase min_stack_allowed calculation"); if (StackTraceInThrowable) { java_lang_Throwable::fill_in_stack_trace(exception, method()); } // Increment counter for hs_err file reporting Atomic::inc(&Exceptions::_stack_overflow_errors); --- 225,235 ---- Handle exception; if (!THREAD->has_pending_exception()) { Klass* k = SystemDictionary::StackOverflowError_klass(); oop e = InstanceKlass::cast(k)->allocate_instance(CHECK); exception = Handle(THREAD, e); // fill_in_stack trace does gc ! assert(InstanceKlass::cast(k)->is_initialized(), "need to increase java_thread_min_stack_allowed calculation"); if (StackTraceInThrowable) { java_lang_Throwable::fill_in_stack_trace(exception, method()); } // Increment counter for hs_err file reporting Atomic::inc(&Exceptions::_stack_overflow_errors);
< prev index next >