RFR: 8364166: Parallel: Remove the use of soft_ref_policy in Full GC [v2]
Albert Mingkun Yang
ayang at openjdk.org
Tue Jul 29 08:54:58 UTC 2025
On Tue, 29 Jul 2025 08:32:10 GMT, Thomas Schatzl <tschatzl at openjdk.org> wrote:
>> Albert Mingkun Yang has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains three additional commits since the last revision:
>>
>> - review
>> - Merge branch 'master' into pgc-soft-ref
>> - pgc-soft-ref
>
> src/hotspot/share/gc/parallel/psParallelCompact.hpp line 765:
>
>> 763:
>> 764: static bool invoke(bool clear_all_soft_refs);
>> 765: static bool invoke_no_policy(bool clear_all_soft_refs);
>
> I would prefer to keep using `maximum_heap_compaction` as `clear_all_soft_refs` seems too specific. However I am not insisting on this.
Max-compaction, in Parallel full-gc, means sth rather specific -- whether some space occupied by dead objs should be replaced with filler objs and not reclaimed. It is determined by `check_maximum_compaction`.
IOW, max-compaction and soft-ref-clearing are two independent decisions.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/26496#discussion_r2239038714
More information about the hotspot-gc-dev
mailing list