changeset 7713:7717a5f1b016

8155826: aarch32: java/nio/MappedByteBuffer/Truncate.java fails Summary: fix nextpc calculation in handle_unsafe_access Reviewed-by: enevill Contributed-by: fedor.burdun@azulsystems.com
author enevill
date Mon, 02 May 2016 15:15:37 +0100
parents 50f87b5832b0
children 1d0974d906a5
files src/os_cpu/linux_aarch32/vm/os_linux_aarch32.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/os_cpu/linux_aarch32/vm/os_linux_aarch32.cpp	Thu Apr 28 17:03:46 2016 +0100
+++ b/src/os_cpu/linux_aarch32/vm/os_linux_aarch32.cpp	Mon May 02 15:15:37 2016 +0100
@@ -208,7 +208,7 @@
   // pc is the instruction which we must emulate
   // doing a no-op is fine:  return garbage from the load
   // therefore, compute npc
-  address npc = pc + NativeCall::instruction_size;
+  address npc = pc + NativeInstruction::arm_insn_sz;
 
   // request an async exception
   thread->set_pending_unsafe_access_error();