8293998: [PPC64] JfrGetCallTrace: assert(_pc != nullptr) failed: must have PC

Reviewed-by: shade, lucy
This commit is contained in:
Martin Doerr 2022-09-27 07:54:13 +00:00
parent 02ea338177
commit 14c6ac457d
2 changed files with 6 additions and 2 deletions

View File

@ -43,7 +43,9 @@ bool JavaThread::pd_get_top_frame_for_profiling(frame* fr_addr, void* ucontext,
// If we have a last_Java_frame, then we should use it even if
// isInJava == true. It should be more reliable than ucontext info.
if (has_last_Java_frame() && frame_anchor()->walkable()) {
*fr_addr = pd_last_frame();
frame last_frame = pd_last_frame();
if (last_frame.pc() == nullptr) return false;
*fr_addr = last_frame;
return true;
}

View File

@ -42,7 +42,9 @@ bool JavaThread::pd_get_top_frame_for_profiling(frame* fr_addr, void* ucontext,
// If we have a last_Java_frame, then we should use it even if
// isInJava == true. It should be more reliable than ucontext info.
if (has_last_Java_frame() && frame_anchor()->walkable()) {
*fr_addr = pd_last_frame();
frame last_frame = pd_last_frame();
if (last_frame.pc() == nullptr) return false;
*fr_addr = last_frame;
return true;
}