RFR: 8283276: java/io/ObjectStreamClass/ObjectStreamClassCaching.java fails with various GCs
Aleksey Shipilev
shade at openjdk.org
Fri Jul 22 10:42:58 UTC 2022
On Fri, 22 Jul 2022 10:36:32 GMT, Roman Kennke <rkennke at 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
More information about the core-libs-dev
mailing list