On Fri, 1 Jul 2022 14:26:24 GMT, Roger Riggs <rri...@openjdk.org> wrote:

>> Thanks @XueleiFan, that's fine by me!
>
> When using Reference/ReferenceQueue there is no Cleaner, only normal 
> reference processing (via GC).

I have tests that use Reference/ReferenceQueue to check that an object that 
uses a Cleaner has been garbage collected. I don't use ForceGC in those tests 
because it's much more efficient to wait on my ReferenceQueue rather than 
having ForceGC  wait on something else.

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

PR: https://git.openjdk.org/jdk/pull/8979

Reply via email to