8257709: C1: Double assignment in InstructionPrinter::print_stack

Reviewed-by: shade, chagedorn
This commit is contained in:
Sergey Platonov 2021-01-12 11:57:34 +00:00 committed by Aleksey Shipilev
parent 400dc76f68
commit 563b268c8f

View File

@ -240,7 +240,7 @@ void InstructionPrinter::print_stack(ValueStack* stack) {
output()->cr();
fill_to(start_position, ' ');
output()->print("locks [");
for (int i = i = 0; i < stack->locks_size(); i++) {
for (int i = 0; i < stack->locks_size(); i++) {
Value t = stack->lock_at(i);
if (i > 0) output()->print(", ");
output()->print("%d:", i);