RFR: 8318629: G1: Refine code a bit in G1RemSetTrackingPolicy::update_at_allocate [v2]

Hamlin Li mli at openjdk.org
Mon Oct 23 14:38:00 UTC 2023


On Mon, 23 Oct 2023 11:02:58 GMT, Albert Mingkun Yang <ayang at openjdk.org> wrote:

>> Hamlin Li has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   refine code
>
> Can't say the new code is easier to read.
> 
> I wonder what you think of sth like:
> 
> 
> assert(is_young || is_old || is_humongous);
> 
> if (is_old) {
>   ...
> } else {
>   ...
> }

@albertnetymk Thanks for the suggestion, I think it's better.

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

PR Comment: https://git.openjdk.org/jdk/pull/16300#issuecomment-1775344959


More information about the hotspot-gc-dev mailing list