RFR: 8312116: GenShen: make instantaneous allocation rate triggers more timely [v29]

Kelvin Nilsen kdnilsen at openjdk.org
Wed Feb 18 23:06:58 UTC 2026


On Tue, 17 Feb 2026 23:42:23 GMT, Kelvin Nilsen <kdnilsen at openjdk.org> wrote:

>> Kelvin Nilsen has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Improve comments
>
> src/hotspot/share/gc/shenandoah/heuristics/shenandoahAdaptiveHeuristics.hpp line 221:
> 
>> 219:   TruncatedSeq _available;
>> 220: 
>> 221:   ShenandoahFreeSet* _free_set;
> 
> Can we use TruncatedSeq::predict_next() for this linear prediction?
> 
> Also, can we get rid of _regulator_thread, _control_thread, is_generational?

I've removed _regulator_thread, _control_thread, _is_generational from ShenanoahAdaptiveHeuristics.

TruncatedSeq::predict_next() assumes all data samples are equidistant and does not allow a parameter to predict the value at a specific future time, so it does not provide the same functionality as the abstraction introduced in this PR.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/29039#discussion_r2824858700


More information about the shenandoah-dev mailing list