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

Albert Mingkun Yang ayang at openjdk.org
Wed Jul 3 10:04:21 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

`set_should_clear_all_soft_refs` should match in pairs. If it's reset in the destructor, where is corresponding set-to-true?

(In the Parallel case, the destructor is invoked after `check_gc_overhead_limit` so the reset would overwrite the set-to-true there.)

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

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


More information about the hotspot-gc-dev mailing list