Skip to content
This repository has been archived by the owner on Sep 19, 2023. It is now read-only.

Commit

Permalink
8290004: [PPC64] JfrGetCallTrace: assert(_pc != nullptr) failed: must…
Browse files Browse the repository at this point in the history
… have PC

Reviewed-by: rrich, lucy
  • Loading branch information
TheRealMDoerr committed Jul 11, 2022
1 parent 0494291 commit cb6e9cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
8 changes: 1 addition & 7 deletions src/hotspot/os_cpu/aix_ppc/thread_aix_ppc.cpp
Expand Up @@ -32,15 +32,9 @@
frame JavaThread::pd_last_frame() {
assert(has_last_Java_frame(), "must have last_Java_sp() when suspended");

intptr_t* sp = last_Java_sp();
intptr_t* sp = Atomic::load_acquire(&_anchor._last_Java_sp);
address pc = _anchor.last_Java_pc();

// Last_Java_pc is not set, if we come here from compiled code.
// Assume spill slot for link register contains a suitable pc.
// Should have been filled by method entry code.
if (pc == NULL)
pc = (address) *(sp + 2);

return frame(sp, pc);
}

Expand Down
9 changes: 1 addition & 8 deletions src/hotspot/os_cpu/linux_ppc/thread_linux_ppc.cpp
Expand Up @@ -31,16 +31,9 @@
frame JavaThread::pd_last_frame() {
assert(has_last_Java_frame(), "must have last_Java_sp() when suspended");

intptr_t* sp = last_Java_sp();
intptr_t* sp = Atomic::load_acquire(&_anchor._last_Java_sp);
address pc = _anchor.last_Java_pc();

// Last_Java_pc is not set, if we come here from compiled code.
// Assume spill slot for link register contains a suitable pc.
// Should have been filled by method entry code.
if (pc == NULL) {
pc = (address) *(sp + 2);
}

return frame(sp, pc);
}

Expand Down

1 comment on commit cb6e9cb

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.