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

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 12
    • Fix Version/s: 12
    • Component/s: hotspot
    • Subcomponent:
      gc
    • Resolved In Build:
      b17

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: