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.
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.
- links to
-
Commit(master) openjdk/jdk/918cf114
-
Review(master) openjdk/jdk/20607