Skip to content
Permalink
Browse files
8267235: [macos_aarch64] InterpreterRuntime::throw_pending_exception …
…messing up LR results in crash

Reviewed-by: akozlov, aph
  • Loading branch information
Vladimir Kempik committed May 20, 2021
1 parent b7b6acd commit ca93399af103384e750dabf3abcc6e8392bcf3f4
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/hotspot/cpu/aarch64/macroAssembler_aarch64.cpp
@@ -678,6 +678,11 @@ void MacroAssembler::call_VM_base(Register oop_result,
// do the call, remove parameters
MacroAssembler::call_VM_leaf_base(entry_point, number_of_arguments, &l);

// lr could be poisoned with PAC signature during throw_pending_exception
// if it was tail-call optimized by compiler, since lr is not callee-saved
// reload it with proper value
adr(lr, l);

// reset last Java frame
// Only interpreter should have to clear fp
reset_last_Java_frame(true);

0 comments on commit ca93399

Please sign in to comment.