RFR: 8368681: Shenandoah: Add documentation comments for ShenandoahAllocationRate [v2]

Kelvin Nilsen kdnilsen at openjdk.org
Fri Oct 3 00:25:45 UTC 2025


On Thu, 25 Sep 2025 23:45:38 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 several typos
>
> src/hotspot/share/gc/shenandoah/heuristics/shenandoahAdaptiveHeuristics.hpp line 52:
> 
>> 50:   // The sampled allocation rate is computed from (allocated - _last_sample_value) / (current_time - _last_sample_time).
>> 51:   // Return the newly computed rate if the sample is taken, zero if it is not an appropriate time to add a sample.
>> 52:   // In the case that a new sample is not take, overwrite unaccounted_bytes_allocated with bytes allocated since
> 
> s/take/taken

Fixed.  Thanks.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/27505#discussion_r2400443230


More information about the hotspot-gc-dev mailing list