Skip to content

Commit c5cef8c

Browse files
elifaslan1gnu-andrew
authored andcommitted
8257709: C1: Double assignment in InstructionPrinter::print_stack
Reviewed-by: andrew Backport-of: 563b268
1 parent 3cc55c3 commit c5cef8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hotspot/share/c1/c1_InstructionPrinter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ void InstructionPrinter::print_stack(ValueStack* stack) {
247247
output()->cr();
248248
fill_to(start_position, ' ');
249249
output()->print("locks [");
250-
for (int i = i = 0; i < stack->locks_size(); i++) {
250+
for (int i = 0; i < stack->locks_size(); i++) {
251251
Value t = stack->lock_at(i);
252252
if (i > 0) output()->print(", ");
253253
output()->print("%d:", i);

0 commit comments

Comments
 (0)