RFR: 8287596: Reorg jdk.test.lib.util.ForceGC [v10]

Daniel Fuchs dfuchs at openjdk.org
Fri Jul 1 14:50:45 UTC 2022

On Fri, 1 Jul 2022 14:26:24 GMT, Roger Riggs <rriggs at 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

More information about the security-dev mailing list