Uploaded image for project: 'JikesRVM'
  1. JikesRVM
  2. RVM-876

Unnecessary CAS with multiple collector threads attempting to forward

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: git tip
    • Fix Version/s: 3.1.4
    • Component/s: MMTk
    • Labels:
      None

      Description

      attemptToForward(ObjectReference) in org.mmtk.utility.ForwardingWord should return the existing object statusWord if the object attempting to be forwarding is already marked BEING_FORWARDED instead of attempting to CAS BEING_FORWARDED into the statusWord. Whilst this is safe because callers of attemptToForward check the returned (previous) value of statusWord and do not double forward the object it generates unnecessary memory traffic.

        Attachments

          Activity

            People

            • Assignee:
              ebrangs Erik Brangs
              Reporter:
              l.hellyer@kent.ac.uk Laurence Hellyer
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: