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

Still, lots of trivial classes are generated by Nashorn compiler

XMLWordPrintable

        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

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

                Created:
                Updated:
                Resolved: