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

JVM Warmup: Investigate class installation overhead

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: P3 P3
    • None
    • 9
    • hotspot

      When weaving and installing a lot of bytecode in Nashorn, the problem isn't so much the code regeneration as the class installation that is a bottleneck we can't do anything about. Even if we install many classes in bulk inside one doPrivileged operation it is still quite slow and about 15-25% of the compile time overhead.

      For example:

      cd nashorn/make
      ant externals
      java -jar dist/nashorn.jar -scripting --log=time ../test/script/basic/compile-octane.js

      will show the class installation time as part of the code generation time as an exit hook.

      Is there any trick to minimize class installation overhead or low hanging fruit inside the JVM to pick at regarding class installation overhead

        1. apa.diff
          2 kB
          Marcus Lagergren

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

              Created:
              Updated:
              Resolved: