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

ZGC: Minor optimization of ZLoadBarrierStubC1

    Details

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

      Description

      In the C1 load barrier stub for ZGC we currently save/restore rax unless it's the stub result register. However, we can also avoid this save/restore of rax if it's the tmp register. Avoiding a push/pop in the stub isn't really an important optimization, but since we already do it for the result register we can just as well do it for the tmp register too, without making the code more complex.

        Attachments

          Activity

            People

            • Assignee:
              pliden Per Liden
              Reporter:
              pliden Per Liden
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: