On Fri, 22 Jul 2022 10:36:32 GMT, Roman Kennke <rken...@openjdk.org> wrote:

> WhiteBox has a number of methods that allow better control over GC, e.g. 
> fullGC(), concurrentGCRunToIdle(), etc. Would that help?

I think the test relies on assumption that `System.gc()` does the weak 
reference clearing. Which is not given, for example if concurrent GC cycle is 
triggered without weak refs processing. I don't think we can solve this with GC 
control, unless we hack into the each of the GC's policies with Whitebox...

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

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

Reply via email to