JDK-8043137 : Collapse long sequences of NOP in Nashorn bytecode output
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: jdk.nashorn
  • Affected Version: 9
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2014-05-14
  • Updated: 2015-01-21
  • Resolved: 2014-05-14
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8 JDK 9
8u40Fixed 9 b17Fixed
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