RFR: 8310946: G1: Refactor G1Policy::next_gc_should_be_mixed
Albert Mingkun Yang
ayang at openjdk.org
Tue Jun 27 12:06:21 UTC 2023
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
-------------
Commit messages:
- g1-next-mixed
Changes: https://git.openjdk.org/jdk/pull/14673/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=14673&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8310946
Stats: 17 lines in 2 files changed: 2 ins; 8 del; 7 mod
Patch: https://git.openjdk.org/jdk/pull/14673.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/14673/head:pull/14673
PR: https://git.openjdk.org/jdk/pull/14673
More information about the hotspot-gc-dev
mailing list