RFR: 8232722: G1 archive region deallocation may shrink the heap below -Xms
Thomas Schatzl
tschatzl at openjdk.org
Thu May 25 14:35:04 UTC 2023
On Thu, 25 May 2023 14:31:24 GMT, Thomas Schatzl <tschatzl at openjdk.org> wrote:
>> src/hotspot/share/gc/g1/heapRegionManager.cpp line 568:
>>
>>> 566: }
>>> 567: HeapRegion* curr_region = _regions.get_by_index(curr_index);
>>> 568: if (!curr_region->is_free()) {
>>
>> What happens with regions committed before this false return?
>
> They will be abandoned and in a weird state... I'll file a bug (this is pre-existing). It never happened because the only case where this is called is CDS loading which happens very early during execution.
I.e. the next region verification will complain.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/14145#discussion_r1205610246
More information about the hotspot-gc-dev
mailing list