RFR: 8323738: Serial: Remove unreachable methods in Generation

Albert Mingkun Yang ayang at openjdk.org
Mon Jan 15 15:54:18 UTC 2024


On Mon, 15 Jan 2024 15:38:43 GMT, Stefan Karlsson <stefank at openjdk.org> wrote:

> but I wonder if it wouldn't be better to also make the functions in DefNewGeneration non-virtual?

Yes; methods in `DefNewGeneration` can be marked as either "override" or drop "virtual" completely, since it has no subclasses. I will do that in a followup PR.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/17429#issuecomment-1892418386


More information about the hotspot-gc-dev mailing list