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