Skip to content

Commit 79a6e5d

Browse files
Markus GrönlundTheRealMDoerr
authored andcommitted
8372586: Crashes on ppc64(le) after JDK-8371368
Reviewed-by: mbaesken
1 parent 847fbab commit 79a6e5d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/hotspot/share/jfr/periodic/sampling/jfrThreadSampling.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,8 @@ static bool compute_top_frame(const JfrSampleRequest& request, frame& top_frame,
217217
const PcDesc* const pc_desc = get_pc_desc(sampled_nm, sampled_pc);
218218
if (is_valid(pc_desc)) {
219219
intptr_t* const synthetic_sp = sender_sp - sampled_nm->frame_size();
220-
top_frame = frame(synthetic_sp, synthetic_sp, sender_sp - 2, pc_desc->real_pc(sampled_nm), sampled_nm);
220+
intptr_t* const synthetic_fp = sender_sp AARCH64_ONLY( - frame::sender_sp_offset);
221+
top_frame = frame(synthetic_sp, synthetic_sp, synthetic_fp, pc_desc->real_pc(sampled_nm), sampled_nm);
221222
in_continuation = is_in_continuation(top_frame, jt);
222223
return true;
223224
}

0 commit comments

Comments
 (0)