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

Refactor out card table from CardTableModRefBS to flatten the BarrierSet hierarchy

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 11
    • None
    • hotspot
    • None
    • gc
    • b04

    Description

      Today, both Parallel, CMS and Serial share the same code for its card marking barrier. However, they have different requirements how to manage its card tables. And as the card table is embedded as a part of the CardTableModRefBS barrier set, this has led to an unnecessary inheritance hierarchy for CardTableModRefBS, where for example CardTableModRefBSForCTRS and CardTableExtension are subclasses that do not change anything to do with the barriers.

      To clean up the code, there should really be a separate CardTable hierarchy that contains the differences how to manage the card table, and simply let CardTableModRefBS have a CardTable. This would allow removing CardTableModRefBSForCTRS and CardTableExtension and their references from shared code.

      Attachments

        Issue Links

          Activity

            People

              eosterlund Erik Ă–sterlund
              eosterlund Erik Ă–sterlund
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: