changeset 48711:e321560ac819

8195859: AArch64: vtableStubs gtest fails after 8174962 Summary: gtest vtableStubs introduced by 8174962 fails on AArch64 with an invalid insn encoding Reviewed-by: duke
author adinn
date Thu, 25 Jan 2018 14:47:27 +0000
parents 77baeab90732
children e2a7856edfba
files src/hotspot/cpu/aarch64/macroAssembler_aarch64.cpp
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/cpu/aarch64/macroAssembler_aarch64.cpp	Fri Jan 26 09:37:10 2018 +0800
+++ b/src/hotspot/cpu/aarch64/macroAssembler_aarch64.cpp	Thu Jan 25 14:47:27 2018 +0000
@@ -1049,7 +1049,8 @@
     ldr(method_result, Address(method_result, vtable_offset_in_bytes));
   } else {
     vtable_offset_in_bytes += vtable_index.as_constant() * wordSize;
-    ldr(method_result, Address(recv_klass, vtable_offset_in_bytes));
+    ldr(method_result,
+        form_address(rscratch1, recv_klass, vtable_offset_in_bytes));
   }
 }