RFR: 8304144: G1: Remove unnecessary is_survivor check in G1ClearCardTableTask

Y. Srinivas Ramakrishna ysr at openjdk.org
Wed Mar 15 21:39:21 UTC 2023


On Tue, 14 Mar 2023 15:02:57 GMT, Albert Mingkun Yang <ayang at openjdk.org> wrote:

> Simple removing redundant check.
> 
> Test: tier1-6

@tschatzl & @albertnetymk : 

I'd suggest adding an assert that the region for which cards are being cleared is not a survivor region, with a comment to that effect. That would safely take care of both of your intentions/comments here.

Otherwise looks good.

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

Changes requested by ysr (Reviewer).

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


More information about the hotspot-gc-dev mailing list