8133557: Missing test before a branch when checking for MethodCounters in TemplateTable::branch() on x86

Reviewed-by: kvn, coleenp
This commit is contained in:
Richard Reingruber 2015-08-14 15:08:55 -04:00 committed by Coleen Phillimore
parent 2fdc0d3f21
commit b42d8f80f5

View File

@ -2014,6 +2014,7 @@ void TemplateTable::branch(bool is_jsr, bool is_wide) {
__ pop(rcx);
__ pop(rdx);
__ movptr(rax, Address(rcx, Method::method_counters_offset()));
__ testptr(rax, rax);
__ jcc(Assembler::zero, dispatch);
__ bind(has_counters);