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

Reduce HeapRegion to only have one member for index in CSet

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 12
    • Fix Version/s: tbd
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      gc

      Description

      Currently there are two members in HeapRegion used to index a CSet, one if the region is young and one if the region is optional:
      uint _index_in_opt_cset;
      int _young_index_in_cset;

      What CSet the region belongs to is stored in the InCSetState. Using this information we should be able to only keep one index member.

      Currently one problem with this is that the _young_index_in_cset makes use of the fact that the default value for old regions is -1 and if adding 1 we get the valid index 0 with is used to keep surviving bytes into old.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated: