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

Still, lots of trivial classes are generated by Nashorn compiler

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: core-libs

      Backports

        Description

        Fix for JDK-8057588 was incomplete.

        Running the fresh Nashorn with dumping all classes:

        ~/trunks/jdk9-dev/build/linux-x86_64-normal-server-release/images/j2sdk-image/bin/java -jar ~/trunks/jdk9-dev/build/linux-x86_64-normal-server-release/images/j2sdk-image/jre/lib/ext/nashorn.jar -Dnashorn.typeInfo.disabled=false --class-cache-size=0 --persistent-code-cache=false -scripting --log=time -d=generated/ test/script/basic/compile-octane.js -- --iterations 1

        ...still yields lots of trivial classes. 2300/3900 of all classes are those trivial.
         http://cr.openjdk.java.net/~shade/8057703/nashorn-generated-classes-2.list

        Also, the additional stage introduced in JDK-8057588 takes considerable time:
         [time] 'Tag Compile Units Used' 1231 ms

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  lagergren Marcus Lagergren
                  Reporter:
                  shade Aleksey Shipilev
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: