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

Avoid additional duplicate work when a reference in the task queue has already been evacuated

XMLWordPrintable

    • gc
    • b17

      Due to benign races we can sometimes get references that have already been evacuated from the task queue.

      Current code in G1ParScanThreadState::do_oop_evac() needlessly applies follow-up calculations (remembered set, humonguous liveness) on this already evacuated reference - that all has been done the first time around already.

      Just exit the method if we detect such a task.

            tschatzl Thomas Schatzl
            tschatzl Thomas Schatzl
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: