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

Metaspace: simplify SpaceManager lists

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 11
    • 11
    • hotspot
    • None
    • b13

        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.

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

                Created:
                Updated:
                Resolved: