RFR: JDK-8262068: Improve G1 Full GC by skipping compaction for regions with high survival ratio [v13]

Hamlin Li mli at openjdk.java.net
Thu Apr 8 10:07:01 UTC 2021


On Wed, 7 Apr 2021 09:35:19 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:
>> 
>>   minor code improvement.
>
> src/hotspot/share/gc/g1/g1FullCollector.cpp line 238:
> 
>> 236:   if (hr->is_closed_archive()) {
>> 237:     _region_attr_table.set_closed_archive(hr->hrm_index());
>> 238:   } else if (hr->is_pinned()) {
> 
> Changing the condition to `hr->is_pinned() || force_pinned` is enough for this method, right?

not exactly. please check previous discussion at https://github.com/openjdk/jdk/pull/2760#discussion_r602144952.
I will merge the 2 conditions as you suggested.

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

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



More information about the hotspot-gc-dev mailing list