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

Metaspace: simplify SpaceManager lists

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 11
    • Fix Version/s: 11
    • Component/s: hotspot
    • Labels:
      None
    • Resolved In Build:
      b13

      Backports

        Description

        SpaceManager keeps separate lists for the different chunk sizes. This is unnecessary.

        It needs to keep a list of in-use chunks in order to free them all at destruction time. But there is no need to keep them separated by chunk size, and it would make coding easier if it wouldn't.

        Note that we still need to be able to know how many chunks for a given chunk size are in use by the SpaceManager - see e.g. calc_chunk_sizes(). However, that is better done with counters instead of summing up the chunks by iterating over per-size-kept lists.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                stuefe Thomas Stuefe
                Reporter:
                stuefe Thomas Stuefe
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: