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

C2: Optimize copying of the shared type dictionary

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 16
    • 16
    • 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.

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

              Created:
              Updated:
              Resolved: