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

G1: Use one G1CardSet instance for multiple old gen regions

XMLWordPrintable

    • gc

      We currently have a 1:1 mapping of region remembered sets and G1CardSet instances, this means that the total remembered set may get very large just by the fact of having many regions and many inter-region pointers.

      However, at each mixed-gc, depending on the G1MixedGCCountTarget, certain regions have to be collected together. With this in mind, we may have these regions share a single instance of G1CardSet. This can decrease the number of inter-remembered set pointers significantly for regions that will be collected at the same time.

      The expected benefit is reduction in the memory overhead of the remembered set and the remembered set merge time during collection pause.

      The one disadvantage is that this decreases the flexibility during evacuation slightly: you can only evacuate all regions that share a particular G1CardSet at once.

            iwalulya Ivan Walulya
            iwalulya Ivan Walulya
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: