RFR: 8319342: GenShen: Reset the count of degenerated cycles in a row following Full GC

Kelvin Nilsen kdnilsen at openjdk.org
Tue Nov 7 21:22:41 UTC 2023


On Mon, 6 Nov 2023 22:49:57 GMT, William Kemper <wkemper at openjdk.org> wrote:

>> After a Full GC completes, reset the count on consecutive degenerated cycles to zero.  This prevents automatic triggering of back-to-back Full GC.
>
> src/hotspot/share/gc/shenandoah/shenandoahCollectorPolicy.hpp line 64:
> 
>> 62:   ShenandoahTracer* _tracer;
>> 63: 
>> 64:   uint _degenerated_cycles_in_a_row;
> 
> Nit, but we could call this `_consecutive_degenerated_gcs` for consistency with other fields in this class? (Also, possibly rename `_abbreviated_cycles` to `_abbreviated_gcs` for the same reason.

Thanks.  Making this change.

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

PR Review Comment: https://git.openjdk.org/shenandoah/pull/352#discussion_r1385601350


More information about the shenandoah-dev mailing list