We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 83b8270 + 8ef032d commit de2be66Copy full SHA for de2be66
OPAL/br/src/main/scala/org/opalj/br/reader/BytecodeOptimizer.scala
@@ -292,10 +292,10 @@ trait BytecodeOptimizer extends MethodsBinding {
292
if (newBranchoffset >= Short.MinValue &&
293
newBranchoffset <= Short.MaxValue
294
) {
295
- // Replace it by a short goto
296
- instructions(pc + 0) = NOP
+ // Replace it by a short goto, which has length 3 instead of length 5
+ instructions(pc + 0) = GOTO(newBranchoffset)
297
instructions(pc + 1) = NOP
298
- instructions(pc + 2) = GOTO(newBranchoffset)
+ instructions(pc + 2) = NOP
299
simplified = true
300
} else {
301
// let's replace the original jump
0 commit comments