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

Sparse remset wastes half of entry memory

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: