mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8339368: Switch targets are not inflated in CodeModel if no StackMap
Reviewed-by: liach
This commit is contained in:
parent
7db4d46c39
commit
a35fd38610
2 changed files with 49 additions and 16 deletions
|
@ -258,6 +258,14 @@ public final class CodeImpl
|
|||
switch (i) {
|
||||
case BranchInstruction br -> br.target();
|
||||
case DiscontinuedInstruction.JsrInstruction jsr -> jsr.target();
|
||||
case LookupSwitchInstruction ls -> {
|
||||
ls.defaultTarget();
|
||||
ls.cases();
|
||||
}
|
||||
case TableSwitchInstruction ts -> {
|
||||
ts.defaultTarget();
|
||||
ts.cases();
|
||||
}
|
||||
default -> {}
|
||||
}
|
||||
pos += i.sizeInBytes();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue