G1: Prune rebuild candidates based on G1HeapWastePercent early

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 23
    • Affects Version/s: 23
    • Component/s: hotspot
    • gc
    • b22

      In G1 the G1CollectionSetChooser removes/prunes regions that meet the G1HeapWastePercent criteria detailed in JDK-8262185 in the Cleanup pause. These regions are removed from possible evacuation and their remembered sets cleared.

      This implies that the work done in rebuilding these remembered sets is wasted. We can prune these regions before the rebuild during Remark and thus not construct these remembered sets which would eventually be cleared anyway.

      Moving this pruning improves rebuild time in addition to remembered set memory usage.

            Assignee:
            Ivan Walulya
            Reporter:
            Ivan Walulya
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: