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

Improved handling of age during object copy in G1

    Details

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

      Backports

        Description

        The current G1 object copy implementation reads age multiple times from the object being promoted/copied which is a fairly expensive operation as it is reading a volatile and requires using a mask to access the age bits.

        To avoid this the markOop will read before the check if the object has already been copied and then the age is read once and reused when updating the age of the object if the thread ends up copying it.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  sfriberg Staffan Friberg (Inactive)
                  Reporter:
                  sfriberg Staffan Friberg (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: