--- a/src/hotspot/cpu/aarch64/templateInterpreterGenerator_aarch64.cpp Fri Dec 01 18:20:00 2017 +0300
+++ b/src/hotspot/cpu/aarch64/templateInterpreterGenerator_aarch64.cpp Fri Dec 01 18:24:52 2017 +0300
@@ -1662,6 +1662,14 @@
__ mov(rscratch2, true);
__ strb(rscratch2, do_not_unlock_if_synchronized);
+ Label no_mdp;
+ Register mdp = r3;
+ __ ldr(mdp, Address(rmethod, Method::method_data_offset()));
+ __ cbz(mdp, no_mdp);
+ __ add(mdp, mdp, in_bytes(MethodData::data_offset()));
+ __ profile_parameters_type(mdp, r1, r2);
+ __ bind(no_mdp);
+
// increment invocation count & check for overflow
Label invocation_counter_overflow;
Label profile_method;