RFR: 8368681: Shenandoah: Add documentation comments for ShenandoahAllocationRate

Xiaolong Peng xpeng at openjdk.org
Fri Sep 26 00:24:45 UTC 2025


On Thu, 25 Sep 2025 23:33:56 GMT, Kelvin Nilsen <kdnilsen at openjdk.org> wrote:

> Add documentation to ShenandoahAllocationRate

src/hotspot/share/gc/shenandoah/heuristics/shenandoahAdaptiveHeuristics.hpp line 74:

> 72: 
> 73:   // Return the instantaneous rate calculated from from (allocated - _last_sample_value) / (time - _last_sample_time).
> 74:   // Return Sentinel vlue 0.0 if (time - _last_sample_time) == 0 or if (allocated <= _last_sample_value).

s/vlue/value

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

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


More information about the hotspot-gc-dev mailing list