RFR: 8305062: Refactor CardTable::resize_covered_region

Thomas Schatzl tschatzl at openjdk.org
Mon Apr 17 15:28:37 UTC 2023


On Mon, 17 Apr 2023 14:31:27 GMT, Albert Mingkun Yang <ayang at openjdk.org> wrote:

> > Maybe some more specialization just for a serial/parallel gc card table would be nice as it's only used by them. In that sense, the initialize() method also seems to be specific to serial/parallel.
> 
> What specialization do you have in mind?

One option could be to introduce some `TwoGenerationCardTable` class that is used by serial/parallel which can add these methods/members. Not sure if it is worth, but `_committed/_covered` does not seem to be used a lot in `CardTable`; e.g. most of the time `_whole_heap` seems to be used in the common functionality anyway.

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

PR Comment: https://git.openjdk.org/jdk/pull/13206#issuecomment-1511590714


More information about the hotspot-gc-dev mailing list