8293998: [PPC64] JfrGetCallTrace: assert(_pc != nullptr) failed: must have PC
Reviewed-by: shade, lucy
This commit is contained in:
parent
02ea338177
commit
14c6ac457d
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user