changeset 8842:6ce41ccea6ca

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
author coleenp
date Fri, 14 Aug 2015 15:08:55 -0400
parents 927043f643bc
children d86f613e4231
files src/cpu/x86/vm/templateTable_x86.cpp
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/cpu/x86/vm/templateTable_x86.cpp	Thu Aug 13 17:17:56 2015 -0500
+++ b/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);