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

Avoid spawning G1ParPreserveCMReferentsTask when there is no work to be done

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • hotspot
    • gc
    • b116

      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.

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

              Created:
              Updated:
              Resolved: