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

Compute caller save exclusion RegMasks once

    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:
      b12

      Description

      By computing the RegMasks used to exclude caller saved registers only once, we can save some computation per C2 compilation. This saves about 27k instructions per compilation on x64, about 3% of the total compilation time for the stub code compiles that happen during startup. With 14 such compilations this saves around 380k instructions during bootstrap alone.

      Proof-of-concept patch: http://cr.openjdk.java.net/~redestad/scratch/static_debug_masks.00/

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: