RFR: 8367476: Shenandoah: Remove use of CollectedHeap::_soft_ref_policy [v2]

William Kemper wkemper at openjdk.org
Tue Sep 16 19:03:02 UTC 2025


On Fri, 12 Sep 2025 14:23:35 GMT, Francesco Andreuzzi <fandreuzzi at openjdk.org> wrote:

>> Similarly to what was done in #26496 and #26648, the usages of `CollectedHeap::_soft_ref_policy` in Shenandoah can be replaced with an earlier call to `ShenandoahReferenceProcessor::set_soft_reference_policy`.
>> 
>> This is the last usage of `CollectedHeap::_soft_ref_policy`, so it can be removed.
>> 
>> Passes tier1-2, and tier3_gc_shenandoah.
>
> Francesco Andreuzzi has updated the pull request incrementally with two additional commits since the last revision:
> 
>  - eagerly initialize to always-clear
>  - move to gccause

Shenandoah parts look good to me.

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

Marked as reviewed by wkemper (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/27239#pullrequestreview-3231296755


More information about the hotspot-gc-dev mailing list