RFR: 8310946: G1: Refactor G1Policy::next_gc_should_be_mixed
Albert Mingkun Yang
ayang at openjdk.org
Fri Jun 30 12:26:05 UTC 2023
On Tue, 27 Jun 2023 11:58:34 GMT, Albert Mingkun Yang <ayang at openjdk.org> wrote:
> Simple restructuring around `next_gc_should_be_mixed`.
>
> (After such refactoring, I also tend to think this predicate makes more sense in the caller context, i.e. `bool is_next_gc_mixed = has_marking_candidates();`. For example, one of the call site even asserts `assert(!candidates()->has_more_marking_candidates(),`. Ofc, this is rather subjective.)
>
> Test: hotspot_gc
Thanks for the review.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/14673#issuecomment-1614576901
More information about the hotspot-gc-dev
mailing list