--- old/src/hotspot/cpu/aarch64/templateInterpreterGenerator_aarch64.cpp 2017-11-29 10:46:14.576293273 +0000 +++ new/src/hotspot/cpu/aarch64/templateInterpreterGenerator_aarch64.cpp 2017-11-29 10:46:13.404243849 +0000 @@ -1671,6 +1671,16 @@ __ mov(rscratch2, true); __ strb(rscratch2, do_not_unlock_if_synchronized); + Register tmp1 = r1; + Register tmp2 = r2; + Register mdp = r4; + Label no_mdp; + __ ldr(mdp, Address(rmethod, Method::method_data_offset())); + __ cbz(mdp, no_mdp); + __ add(mdp, mdp, in_bytes(MethodData::data_offset())); + __ profile_parameters_type(mdp, tmp1, tmp2); + __ bind(no_mdp); + // increment invocation count & check for overflow Label invocation_counter_overflow; Label profile_method;