RFR: 8335493: ClearedAllSoftRefs::~ClearedAllSoftRefs should reset SoftRefPolicy::_should_clear_all_soft_refs
Liang Mao
lmao at openjdk.org
Wed Jul 3 10:09:23 UTC 2024
On Wed, 3 Jul 2024 10:01:22 GMT, Albert Mingkun Yang <ayang at openjdk.org> wrote:
> `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.)
check_gc_overhead_limit sets should_clear_all_soft_refs to true and the sucessful full gc will reset should_clear_all_soft_refs. I didn't the get the point...
-------------
PR Comment: https://git.openjdk.org/jdk/pull/19982#issuecomment-2205650594
More information about the hotspot-gc-dev
mailing list