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

duke duke at openjdk.org
Tue Sep 16 19:17:59 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

@fandreuz 
Your change (at version a55b8bd21ffa892b7f045bfe0961773855790661) is now ready to be sponsored by a Committer.

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

PR Comment: https://git.openjdk.org/jdk/pull/27239#issuecomment-3300024331


More information about the hotspot-gc-dev mailing list