RFR: 8365956: GenShen: Adaptive tenuring threshold algorithm may raise threshold prematurely [v5]

William Kemper wkemper at openjdk.org
Tue Sep 9 23:48:14 UTC 2025


On Tue, 9 Sep 2025 22:31:19 GMT, Kelvin Nilsen <kdnilsen at openjdk.org> wrote:

>> src/hotspot/share/gc/shenandoah/shenandoahAgeCensus.hpp line 186:
>> 
>>> 184: 
>>> 185:   // Return true if this age is at or above the tenuring threshold.
>>> 186:   bool is_tenurable(uint age) const {
>> 
>> might want to mark this as inline.  (if in-lined, this might be the right way to check whether individual objects should be promoted.  But I don't want to delay integration of this PR, so maybe that could be done in a different PR if we think it worthwhile.)
>
> Ok.  I see that ShenandoahGenerationalHeap::is_tenurable() is in-lined.  That's probably the one that matters the most.

Anything defined in the header is implicitly inlined.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/26906#discussion_r2335110857


More information about the hotspot-gc-dev mailing list