RFR: 8293282: LoadLibraryUnloadTest.java fails with "Too few cleared WeakReferences" [v3]
Mandy Chung
mchung at openjdk.org
Fri Sep 9 18:23:52 UTC 2022
On Fri, 9 Sep 2022 15:48:41 GMT, Roger Riggs <rriggs at openjdk.org> wrote:
>> Modify the LoadLibraryUnload test to call gc() more a few times, allowing multiple gc cycles to queue the expected refs.
>> Short the timeout on each cycle to 10 sec.
>
> Roger Riggs has updated the pull request incrementally with one additional commit since the last revision:
>
> Remove unused ReferenceQueue for canary WeakReferences.
Jai has a good observation and setting -Xmx to a smaller heap size while I agree that is orthogonal to this change. Less work for GC may shorten the test execution time as it was suspected that this takes more than one GCs to clear the weak reference.
-------------
PR: https://git.openjdk.org/jdk/pull/10223
More information about the core-libs-dev
mailing list