From 2a92fea18823f36b5be573d9b23e819dfc2b4880 Mon Sep 17 00:00:00 2001 From: Elif Aslan Date: Tue, 11 Nov 2025 22:39:40 +0000 Subject: [PATCH] Backport 563b268c8f23a1f9f5e70065419d4e8661d1d0b4 --- src/hotspot/share/c1/c1_InstructionPrinter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hotspot/share/c1/c1_InstructionPrinter.cpp b/src/hotspot/share/c1/c1_InstructionPrinter.cpp index 9037e81b15a..3a37209f8bc 100644 --- a/src/hotspot/share/c1/c1_InstructionPrinter.cpp +++ b/src/hotspot/share/c1/c1_InstructionPrinter.cpp @@ -247,7 +247,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);