8133557: Missing test before a branch when checking for MethodCounters in TemplateTable::branch() on x86
Reviewed-by: kvn, coleenp
Contributed-by: richard.reingruber@sap.com
--- a/hotspot/src/cpu/x86/vm/templateTable_x86.cpp Thu Aug 13 17:17:56 2015 -0500
+++ b/hotspot/src/cpu/x86/vm/templateTable_x86.cpp Fri Aug 14 15:08:55 2015 -0400
@@ -2014,6 +2014,7 @@
__ pop(rcx);
__ pop(rdx);
__ movptr(rax, Address(rcx, Method::method_counters_offset()));
+ __ testptr(rax, rax);
__ jcc(Assembler::zero, dispatch);
__ bind(has_counters);