changeset 6683:cb39f2849d75

8209414, PR3669: AArch64: method handle invocation does not respect JVMTI interp_only mode Reviewed-by: adinn Contributed-by: nick.gasson@arm.com
author fyang
date Mon, 18 Feb 2019 02:31:41 +0000
parents 9599175faddb
children c026104503cf
files src/cpu/aarch64/vm/methodHandles_aarch64.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/cpu/aarch64/vm/methodHandles_aarch64.cpp	Mon Feb 18 02:26:43 2019 +0000
+++ b/src/cpu/aarch64/vm/methodHandles_aarch64.cpp	Mon Feb 18 02:31:41 2019 +0000
@@ -107,8 +107,8 @@
     // compiled code in threads for which the event is enabled.  Check here for
     // interp_only_mode if these events CAN be enabled.
 
-    __ ldrb(rscratch1, Address(rthread, JavaThread::interp_only_mode_offset()));
-    __ cbnz(rscratch1, run_compiled_code);
+    __ ldrw(rscratch1, Address(rthread, JavaThread::interp_only_mode_offset()));
+    __ cbzw(rscratch1, run_compiled_code);
     __ ldr(rscratch1, Address(method, methodOopDesc::interpreter_entry_offset()));
     __ br(rscratch1);
     __ BIND(run_compiled_code);