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

Get rid of FreeBlockDictionary and dithering

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 10
    • 10
    • hotspot
    • None
    • gc
    • b21

      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.

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

              Created:
              Updated:
              Resolved: