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

Performance issue with Nashorn and C2's global code motion

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b103

      Description

      The Octane benchmark shows a very significant performance drop with JVMTI. The JVM spends the majority of the whole CPU time in Node_Backward_Iterator::next during PhaseCFG::schedule_late when JvmtiExport::_can_access_local_variables is on (see http://cr.openjdk.java.net/~mdoerr/OctaneVTune.jpg).

      You can reproduce the performance issue with http://cr.openjdk.java.net/~mdoerr/miniOctane by running openjdk_8/bin/java -agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n OctaneLauncher

      The option "agentlib..." activates the JVMTI capability can_access_local_variables which prevents C2 from killing dead locals leading to a higher number of edges in the graph. Even without the parameter which enables can_access_local_variables the Node_Backward_Iterator::next() consumes a noticeable (but not dominant) amount of CPU time.

        Attachments

          Activity

            People

            • Assignee:
              mdoerr Martin Doerr
              Reporter:
              mdoerr Martin Doerr
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: