RFR: 8286045: Use ForceGC for cleaner test cases
Roger Riggs
rriggs at openjdk.java.net
Wed May 25 17:25:13 UTC 2022
On Wed, 25 May 2022 15:20:45 GMT, Xue-Lei Andrew Fan <xuelei at openjdk.org> wrote:
> Hi,
>
> May I have the test case update reviewed?
>
> This patch is trying to use ForceGC for cleaner test cases. As would make the test more stable and easier to maintain.
>
> Thanks,
> Xuelei
The usage looks fine.
(But ForceGC is a heavyweight blunt instrument.
It creates a new Cleaner for every instance and an instance can only be used once.
Also, its minimum wait/sleep time is 1 second, that's a loooong time.).
-------------
Marked as reviewed by rriggs (Reviewer).
PR: https://git.openjdk.java.net/jdk/pull/8885
More information about the security-dev
mailing list