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

Get rid of FreeBlockDictionary and dithering

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 10
    • Fix Version/s: 10
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
      gc
    • Resolved In Build:
      b21

      Description

      FreeBlockDictionary is an interface for BinaryTreeDictionary with no other implementations. Having a template superclass for BinaryTreeDictionary just complicates the code for no good reason.
      There is only one location where a base class pointer to a FreeBlockDictionary is used, in CompactibleFreeListSpace, but that can easily be replaced by the concrete type used all over CMS instead.
      Additionally, the interface allows implementations to return chunks of roughly correct sizes specified by the Dither enum. No caller ever requests anything but the default atLeast selection so we should get rid of that parameter as well.

        Attachments

          Activity

            People

            Assignee:
            mgerdin Mikael Gerdin (Inactive)
            Reporter:
            mgerdin Mikael Gerdin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: