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

C2: Optimize copying of the shared type dictionary

    XMLWordPrintable

    Details

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

      Description

      In Type::Initialize, we copy the shared type Dict into a Dict to be used during compilation. This is done with an iteration over the shared dictionary. There is an existing deep copy constructor for Dict, but this actually seems broken (doesn't set _cnt) and inappropriate (doesn't allow specifying arena).

      A quick stab at fixing these issues and deep copying the shared type dict reduces each C2 compilation by ~32k insns.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: