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

Collapse long sequences of NOP in Nashorn bytecode output

    XMLWordPrintable

Details

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

    Backports

      Description

        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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved: