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

Francesco Andreuzzi fandreuzzi at openjdk.org
Fri Sep 12 14:23:37 UTC 2025


On Fri, 12 Sep 2025 11:00:01 GMT, Albert Mingkun Yang <ayang at openjdk.org> wrote:

>> Francesco Andreuzzi has updated the pull request incrementally with two additional commits since the last revision:
>> 
>>  - eagerly initialize to always-clear
>>  - move to gccause
>
> src/hotspot/share/gc/shared/collectedHeap.hpp line 239:
> 
>> 237:     return cause == GCCause::_metadata_GC_clear_soft_refs ||
>> 238:            cause == GCCause::_wb_full_gc;
>> 239:   }
> 
> I feel that it makes more sense to have this in `GCCause`.

035963eb771c9c614cc98affdbbb18ec86a53e78

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

PR Review Comment: https://git.openjdk.org/jdk/pull/27239#discussion_r2344402767


More information about the hotspot-gc-dev mailing list