src/os_cpu/solaris_sparc/vm/os_solaris_sparc.cpp
Print this page
rev 7023 : 8058345: Refactor native stack printing from vmError.cpp to debug.cpp to make it available in gdb as well
Summary: Also fix stack trace on x86 to enable walking of runtime stubs and native wrappers
*** 263,273 ****
intptr_t* sp = StubRoutines::Sparc::flush_callers_register_windows_func()();
frame myframe(sp, frame::unpatchable,
CAST_FROM_FN_PTR(address, os::current_frame));
if (os::is_first_C_frame(&myframe)) {
// stack is not walkable
! return frame(NULL, NULL, NULL);
} else {
return os::get_sender_for_C_frame(&myframe);
}
}
--- 263,273 ----
intptr_t* sp = StubRoutines::Sparc::flush_callers_register_windows_func()();
frame myframe(sp, frame::unpatchable,
CAST_FROM_FN_PTR(address, os::current_frame));
if (os::is_first_C_frame(&myframe)) {
// stack is not walkable
! return frame(NULL, NULL, false);
} else {
return os::get_sender_for_C_frame(&myframe);
}
}