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

Improved handling of age during object copy in G1

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • None
    • hotspot
    • gc
    • b42

        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.

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

                Created:
                Updated:
                Resolved: