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

Unnecessary memory barriers in G1ParScanThreadState::copy_to_survivor_space

XMLWordPrintable

    • gc
    • b20
    • ppc

        In the G1ParScanThreadState::copy_to_survivor_space, a copy is performed after a thread succeeds in the CAS. CAS-failed threads are not allowed to dereference the forwardee concurrently. Current code is already written so that CAS-failed threads do not dereference the forwardee. Therefore, full fences before/after the CAS is not necessary.

              mhorie Michihiro Horie
              mhorie Michihiro Horie
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: