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

Avoid spawning G1ParPreserveCMReferentsTask when there is no work to be done

    Details

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

      Description

      During post_evacuate_collection_set do preserve_cm_referents to ensure no referents are lost. This is currently done unconditionally and when no concurrent cycle is going this will spin up a lot of tasks that will find that there is no work to be done.

      The proposal is to avoid this unnecessary work by first checking that the cm-ref-processor has at least one discovered reference.

        Attachments

          Activity

            People

            • Assignee:
              sjohanss Stefan Johansson
              Reporter:
              sjohanss Stefan Johansson
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: