RFR: 8302215: G1: Last-ditch Full GC should do serial compaction for tail regions in per thread compaction points. [v3]

Ivan Walulya iwalulya at openjdk.org
Thu Feb 16 18:08:00 UTC 2023


On Thu, 16 Feb 2023 17:33:27 GMT, Albert Mingkun Yang <ayang at openjdk.org> wrote:

>> Ivan Walulya has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   reviews
>
> src/hotspot/share/gc/g1/g1FullCollector.cpp line 382:
> 
>> 380:   for (uint i = lowest_current; i < _heap->max_reserved_regions(); i++) {
>> 381:     if (_region_attr_table.is_free(i) || _region_attr_table.is_compacting(i)) {
>> 382:       serial_cp->add(_heap->region_at(i));
> 
> Could `G1SerialRePrepareClosure` be used here, instead of having another loop iterating over the same set of regions in next step?

Done!

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

PR: https://git.openjdk.org/jdk/pull/12529


More information about the hotspot-gc-dev mailing list