RFR: 8335493: ClearedAllSoftRefs::~ClearedAllSoftRefs should reset SoftRefPolicy::_should_clear_all_soft_refs

Albert Mingkun Yang ayang at openjdk.org
Wed Jul 3 10:20:18 UTC 2024


On Tue, 2 Jul 2024 06:57:41 GMT, Liang Mao <lmao at openjdk.org> wrote:

> It's for fixing the issue should_clear_all_soft_refs is not reset after Parallel Full GC.
> 
> Tested test/hotspot/jtreg/gc with -XX:+UseParallelGC

In `PSParallelCompact::invoke_no_policy`, the structure is essentially:


{
  ClearedAllSoftRefs ...
  check_gc_overhead_limit; // set-to-true
}


The destructor (as in this PR) would cancel out the clear-soft-ref in the upcoming GCs.

> the sucessful full gc

When does "unsuccessful" full-gc occur?

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

PR Comment: https://git.openjdk.org/jdk/pull/19982#issuecomment-2205707208


More information about the hotspot-gc-dev mailing list