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

Clean up some virtual fucntions in Space class hierarchy

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      gc
    • Resolved In Build:
      b08

      Backports

        Description

        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.

          Attachments

            Issue Links

              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: