RFR: 8339611: GenShen: Simplify ShenandoahOldHeuristics::trigger_collection_if_fragmented [v3]
Y. Srinivas Ramakrishna
ysr at openjdk.org
Wed Sep 11 00:02:30 UTC 2024
On Tue, 10 Sep 2024 23:37:27 GMT, Y. Srinivas Ramakrishna <ysr at openjdk.org> wrote:
>> Kelvin Nilsen has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Improve comments and clarify intent of old_region_span
>
> src/hotspot/share/gc/shenandoah/heuristics/shenandoahOldHeuristics.cpp line 552:
>
>> 550: // is required to represent the memory currently used within the old generation. This trigger looks specifically
>> 551: // at density of the old-gen spanned region. A different mechanism triggers old-gen GC if the total number of
>> 552: // old-gen regions (regardless of how close the regions are to one another) grows beyond an anticipated growth target.
>
> I realize this is a private API / work method. Would still be good to place the documentation comment in the .hpp file.
>
>
> // If the old generation is fragmented, set appropriate collection triggering signals.
In this implementation, I'd then describe how the fragmentation is computed.
-------------
PR Review Comment: https://git.openjdk.org/shenandoah/pull/492#discussion_r1752936273
More information about the shenandoah-dev
mailing list