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

Sparse remset wastes half of entry memory

    Details

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

      Description

      When allocating the hash table for the sparse remset the code allocates capacity SparsePRTEntrys. However, only approximately half of them are ever used because if the occupancy is 1/2 of capacity the hash table expands.

      Fix this memory wastage by allocating only the appropriate amount of SparsePRTEntrys.

        Attachments

          Activity

            People

            • Assignee:
              tschatzl Thomas Schatzl
              Reporter:
              tschatzl Thomas Schatzl
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: