Serial: Move Generation::print_on to subclasses

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 24
    • Affects Version/s: None
    • Component/s: hotspot
    • gc
    • b12

      Generation::print_on is virtual method, but it's always called by subclasses to reuse some printing logic.

      Move this method to subclasses to get rid of the use of virtual. This results into some minor code duplication, but simplifies the inheritance hierarchy greatly.

            Assignee:
            Albert Yang
            Reporter:
            Albert Yang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: