Index: runtime/vm/stub_code_arm64.cc |
diff --git a/runtime/vm/stub_code_arm64.cc b/runtime/vm/stub_code_arm64.cc |
index 09d973b1e4a8752030a613d6f927b7db895d7bbe..9194fa3d0fcc5ed388a8a89b08b56d6e81d11415 100644 |
--- a/runtime/vm/stub_code_arm64.cc |
+++ b/runtime/vm/stub_code_arm64.cc |
@@ -1895,6 +1895,9 @@ void StubCode::GenerateJumpToExceptionHandlerStub(Assembler* assembler) { |
__ StoreToOffset(R2, THR, Thread::vm_tag_offset()); |
// Clear top exit frame. |
__ StoreToOffset(ZR, THR, Thread::top_exit_frame_info_offset()); |
+ // Restore the pool pointer. |
+ __ RestoreCodePointer(); |
+ __ LoadPoolPointer(); |
__ ret(); // Jump to the exception handler code. |
} |