Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8043137

Collapse long sequences of NOP in Nashorn bytecode output

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • core-libs
    • None
    • b17
    • generic
    • generic

        Due to the way our codegen works, we must emit a bunch of unreachable code in our continuation methods. ASM replaces them with long stretches of NOP, NOP, ... ATHROW. They take up a lot of space in the print output of --print-code switch. They should be replaced with an ellipse, e.g.

           17 nop
           18 nop
           19 nop
           20 nop
           21 nop
           22 nop
           23 athrow

        becomes:

           17 nop
                  ...
           23 athrow

              attila Attila Szegedi
              attila Attila Szegedi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: