Skip to content

Commit 14c6ac4

Browse files
committed
8293998: [PPC64] JfrGetCallTrace: assert(_pc != nullptr) failed: must have PC
Reviewed-by: shade, lucy
1 parent 02ea338 commit 14c6ac4

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/hotspot/os_cpu/aix_ppc/javaThread_aix_ppc.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ bool JavaThread::pd_get_top_frame_for_profiling(frame* fr_addr, void* ucontext,
4343
// If we have a last_Java_frame, then we should use it even if
4444
// isInJava == true. It should be more reliable than ucontext info.
4545
if (has_last_Java_frame() && frame_anchor()->walkable()) {
46-
*fr_addr = pd_last_frame();
46+
frame last_frame = pd_last_frame();
47+
if (last_frame.pc() == nullptr) return false;
48+
*fr_addr = last_frame;
4749
return true;
4850
}
4951

src/hotspot/os_cpu/linux_ppc/javaThread_linux_ppc.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ bool JavaThread::pd_get_top_frame_for_profiling(frame* fr_addr, void* ucontext,
4242
// If we have a last_Java_frame, then we should use it even if
4343
// isInJava == true. It should be more reliable than ucontext info.
4444
if (has_last_Java_frame() && frame_anchor()->walkable()) {
45-
*fr_addr = pd_last_frame();
45+
frame last_frame = pd_last_frame();
46+
if (last_frame.pc() == nullptr) return false;
47+
*fr_addr = last_frame;
4648
return true;
4749
}
4850

0 commit comments

Comments
 (0)