Get the javap's output that contains "StackMap locals" section (e.g.
public class A {
public void a() {
for (int i = 0; i < 10; i++) {
}
}
}
)
The "StackMap locals:" and the following sections are aligned incorrectly:
.........
public void a();
Code:
StackMap locals: this
StackMap stack:
9 for (int i = 0; i < 10; i++) {
( 10) }
start local 0 // A this
0: iconst_0
1: istore_1
start local 1 // int i
StackMap locals: this int
StackMap stack:
2: iload_1
3: bipush 10
5: if_icmpge 14
8: iinc 1, 1
11: goto 2
11 }
end local 1 // int i
StackMap locals: this
StackMap stack:
14: return
end local 0 // A this
}
public class A {
public void a() {
for (int i = 0; i < 10; i++) {
}
}
}
)
The "StackMap locals:" and the following sections are aligned incorrectly:
.........
public void a();
Code:
StackMap locals: this
StackMap stack:
9 for (int i = 0; i < 10; i++) {
( 10) }
start local 0 // A this
0: iconst_0
1: istore_1
start local 1 // int i
StackMap locals: this int
StackMap stack:
2: iload_1
3: bipush 10
5: if_icmpge 14
8: iinc 1, 1
11: goto 2
11 }
end local 1 // int i
StackMap locals: this
StackMap stack:
14: return
end local 0 // A this
}
- links to
-
Commit(master) openjdk/jdk/ec061874
-
Review(master) openjdk/jdk/21685