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

Inefficient pre-sizing of PhiResolverState arrays in c1_LIRGenerator

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 13
    • Fix Version/s: 13
    • Component/s: hotspot
    • Subcomponent:
    • Resolved In Build:
      b13

      Description

      The PhiResolverState arrays are pre-sized to the maximum possible number of nodes that can be put into them, which when instrumenting turns out to be quite excessive. By not pre-sizing to the theoretical maximum I can measure a substantial improvements in calling methods (only a small fraction of calls ever have to grow the arrays from their default sizes), and a significant reduction of the total instructions executed in a variety of startup benchmarks

        Attachments

          Activity

            People

            • Assignee:
              redestad Claes Redestad
              Reporter:
              redestad Claes Redestad
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: