Skip to content

Commit

Permalink
8254811: JDK-8254158 broke ppc64, s390 builds
Browse files Browse the repository at this point in the history
Reviewed-by: stuefe, goetz
  • Loading branch information
TheRealMDoerr committed Oct 15, 2020
1 parent 8ef88e5 commit cda22e3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/hotspot/os/posix/os_posix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -965,8 +965,12 @@ bool os::Posix::handle_stack_overflow(JavaThread* thread, address addr, address
if (activation.sp() != NULL) {
overflow_state->disable_stack_reserved_zone();
if (activation.is_interpreted_frame()) {
overflow_state->set_reserved_stack_activation((address)(
activation.fp() + frame::interpreter_frame_initial_sp_offset));
overflow_state->set_reserved_stack_activation((address)(activation.fp()
// Some platforms use frame pointers for interpreter frames, others use initial sp.
#if !defined(PPC64) && !defined(S390)
+ frame::interpreter_frame_initial_sp_offset
#endif
));
} else {
overflow_state->set_reserved_stack_activation((address)activation.unextended_sp());
}
Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/os_cpu/aix_ppc/os_aix_ppc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ frame os::fetch_compiled_frame_from_context(const void* ucVoid) {
const ucontext_t* uc = (const ucontext_t*)ucVoid;
intptr_t* sp = os::Aix::ucontext_get_sp(uc);
address lr = ucontext_get_lr(uc);
*fr = frame(sp, lr);
return frame(sp, lr);
}

frame os::get_sender_for_C_frame(frame* fr) {
Expand Down

1 comment on commit cda22e3

@bridgekeeper
Copy link

@bridgekeeper bridgekeeper bot commented on cda22e3 Oct 15, 2020

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.