RFR: 8303244: G1: call CardTable::clear_MemRegion directly

Kim Barrett kbarrett at openjdk.org
Wed Mar 1 09:50:16 UTC 2023


On Tue, 28 Feb 2023 13:50:36 GMT, Albert Mingkun Yang <ayang at openjdk.org> wrote:

> > what the difference between CT::clear and CT::clear_MemRegion might be.
> 
> The former guards against memregions not covered by `_covered`. (Maybe or maybe not really needed for Serial/Parallel; will take a look after this PR.)

Right, but that's not what the description comments for the xxx_MemRegion functions say.

> > dirty_MemRegion vs clear_MemRegion
> 
> Maybe there's no need for such discrepancy. Can be fixed in another PR.

That would be fine.

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

PR: https://git.openjdk.org/jdk/pull/12764


More information about the hotspot-gc-dev mailing list