8297660: x86: Redundant test+jump in C1 allocateArray

Reviewed-by: aph, yyang
This commit is contained in:
Thomas Stuefe 2022-11-28 12:45:36 +00:00
parent eff4c039da
commit c05dc80234

View File

@ -176,7 +176,6 @@ void C1_MacroAssembler::initialize_body(Register obj, Register len_in_bytes, int
// len_in_bytes is positive and ptr sized
subptr(len_in_bytes, hdr_size_in_bytes);
jcc(Assembler::zero, done);
zero_memory(obj, len_in_bytes, hdr_size_in_bytes, t1);
bind(done);
}