src/share/vm/utilities/vmError.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File 8035983 Cdiff src/share/vm/utilities/vmError.cpp

src/share/vm/utilities/vmError.cpp

Print this page

        

*** 588,607 **** int count = 0; while (count++ < StackPrintLimit) { fr.print_on_error(st, buf, sizeof(buf)); st->cr(); // Compiled code may use EBP register on x86 so it looks like // non-walkable C frame. Use frame.sender() for java frames. if (_thread && _thread->is_Java_thread() && fr.is_java_frame()) { RegisterMap map((JavaThread*)_thread, false); // No update fr = fr.sender(&map); ! continue; ! } ! if (os::is_first_C_frame(&fr)) break; fr = os::get_sender_for_C_frame(&fr); } if (count > StackPrintLimit) { st->print_cr("...<more frames>..."); } --- 588,609 ---- int count = 0; while (count++ < StackPrintLimit) { fr.print_on_error(st, buf, sizeof(buf)); st->cr(); + // Catch very first native frame by using stack address. + if (!_thread->on_local_stack((address)(fr.sp() + 4))) break; + // Compiled code may use EBP register on x86 so it looks like // non-walkable C frame. Use frame.sender() for java frames. if (_thread && _thread->is_Java_thread() && fr.is_java_frame()) { RegisterMap map((JavaThread*)_thread, false); // No update fr = fr.sender(&map); ! } else { fr = os::get_sender_for_C_frame(&fr); } + } if (count > StackPrintLimit) { st->print_cr("...<more frames>..."); }
src/share/vm/utilities/vmError.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File