8209414: AArch64: method handle invocation does not respect JVMTI interp_only mode
authoradinn
Wed, 19 Dec 2018 11:45:54 +0000
changeset 53222 8be214962266
parent 53221 3f4f81fbc989
child 53223 df6cbf676c70
8209414: AArch64: method handle invocation does not respect JVMTI interp_only mode Reviewed-by: adinn Contributed-by: nick.gasson@arm.com
src/hotspot/cpu/aarch64/methodHandles_aarch64.cpp
--- a/src/hotspot/cpu/aarch64/methodHandles_aarch64.cpp	Wed Jan 09 10:18:37 2019 +0100
+++ b/src/hotspot/cpu/aarch64/methodHandles_aarch64.cpp	Wed Dec 19 11:45:54 2018 +0000
@@ -105,8 +105,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, Method::interpreter_entry_offset()));
     __ br(rscratch1);
     __ BIND(run_compiled_code);