8339368: Switch targets are not inflated in CodeModel if no StackMap

Reviewed-by: liach
This commit is contained in:
Adam Sotona 2024-09-06 07:43:38 +00:00
parent 7db4d46c39
commit a35fd38610
2 changed files with 49 additions and 16 deletions

View file

@ -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();