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

Clean up some virtual fucntions in Space class hierarchy

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 9
    • hotspot
    • gc
    • b08

        Space::is_in is implemented the same by all Space subclasses, move it to Space and make it non-virtual.
        Space::used_region has a bogus implementation that is never useful, remove it.
        Consolidate more code related to saved_marks in the Space base class
        Make CompactibleSpace::reset_after_compaction a pure virtual.
        Give Space::minimum_free_block_size a default implementation since only CMS needs to override it.

        This is useful in order to reduce the amount of code needed to disconnect G1 from ContiguousSpace.

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

                Created:
                Updated:
                Resolved: