RFR: 8377180: Shenandoah: make escalation from degen to full more conservative [v2]

Kelvin Nilsen kdnilsen at openjdk.org
Thu Feb 5 22:25:37 UTC 2026


On Thu, 5 Feb 2026 21:00:58 GMT, William Kemper <wkemper at openjdk.org> wrote:

>> Kelvin Nilsen has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Fix gtest for ShenandoahCollectorPolicy
>
> src/hotspot/share/gc/shenandoah/shenandoahCollectorPolicy.hpp line 122:
> 
>> 120:   // Genshen will only upgrade to a full gc after the configured number of futile degenerated cycles.
>> 121:   bool should_upgrade_degenerated_gc() const {
>> 122:     return _consecutive_degenerated_gcs_without_progress >= GENERATIONAL_CONSECUTIVE_BAD_DEGEN_PROGRESS_THRESHOLD;
> 
> Shall we rename `GENERATIONAL_CONSECUTIVE_BAD_DEGEN_PROGRESS_THRESHOLD` as well? Perhaps `CONSECUTIVE_BAD_DEGEN_PROGRESS_THRESHOLD`?

Sure.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/29574#discussion_r2771410369


More information about the shenandoah-dev mailing list