8133557: Missing test before a branch when checking for MethodCounters in TemplateTable::branch() on x86
authorcoleenp
Fri, 14 Aug 2015 15:08:55 -0400
changeset 32355 a8f8c456bca5
parent 32351 1da9b960b3d4
child 32356 f106b3a75fc9
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
hotspot/src/cpu/x86/vm/templateTable_x86.cpp
--- 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);