RFR: JDK-8263495: Gather liveness info in the mark phase of G1 full gc [v8]

Albert Mingkun Yang ayang at openjdk.java.net
Thu Mar 18 14:18:40 UTC 2021


On Thu, 18 Mar 2021 02:17:10 GMT, Hamlin Li <mli at openjdk.org> wrote:

>> Gather liveness info in the mark phase of G1 full gc.
>> 
>> Per-region liveness info in the mark phase of G1 full gc is for several purposes:
>> 
>> JDK-8262068 needs it to determine whether compaction of a region should be skipped
>> JDK-8258431 for a JFR event that prints live set size estimate
>> 
>> so add this functionality.
>
> Hamlin Li has updated the pull request incrementally with one additional commit since the last revision:
> 
>   better inline suggestions.

Marked as reviewed by ayang (Committer).

src/hotspot/share/gc/g1/g1FullCollector.cpp line 129:

> 127:   for (uint j = 0; j < heap->max_regions(); j++) {
> 128:     _live_stats[j].clear();
> 129:   }

Nit: `i` could be used instead of `j`, right?

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

PR: https://git.openjdk.java.net/jdk/pull/2966



More information about the hotspot-gc-dev mailing list