RFR: 8297186: G1 triggers unnecessary full GCs when heap utilization is low
Thomas Schatzl
tschatzl at openjdk.org
Fri Nov 18 10:36:25 UTC 2022
On Thu, 17 Nov 2022 23:41:08 GMT, Man Cao <manc at openjdk.org> wrote:
>> Hi all,
>>
>> can I have reviews for this change that better enforces that after gc there is at least one eden region to allocate into?
>>
>> That avoids the problem described in the PR.
>>
>> Thanks,
>> Thomas
>
> src/hotspot/share/gc/g1/g1Policy.cpp line 191:
>
>> 189:
>> 190: void G1Policy::update_young_length_bounds() {
>> 191: assert_at_safepoint();
>
> This assertion seems to fail in pre-submit build. Might come from G1Policy::init()?
We should also allow for initialization/startup. Fixed.
-------------
PR: https://git.openjdk.org/jdk/pull/11209
More information about the hotspot-gc-dev
mailing list