C2: Optimize copying of the shared type dictionary

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 16
    • Affects Version/s: 16
    • Component/s: hotspot
    • b25

      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.

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

              Created:
              Updated:
              Resolved: