RFR: 8300727: java/awt/List/ListGarbageCollectionTest/AwtListGarbageCollectionTest.java failed with "List wasn't garbage collected" [v2]
Tejesh R
tr at openjdk.org
Thu Mar 9 09:38:19 UTC 2023
On Mon, 6 Mar 2023 17:24:13 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:
>> The test has become unstable recently, there were quite a few failures, on Windows mostly. I was lucky enough to find a host where the test failed consistently.
>>
>> I call `System.gc()` directly as suggested in comments to the bug. I used `PhantomReference` instead of `WeakReference`.
>>
>> Now the test calls `System.gc()` in a loop and waits for the reference to be enqueued. In majority of cases, the test exits the loop at the second attempt.
>
> Alexey Ivanov has updated the pull request incrementally with one additional commit since the last revision:
>
> Use jdk.test.lib.util.ForceGC library class to Force GC
Marked as reviewed by tr (Committer).
-------------
PR: https://git.openjdk.org/jdk/pull/12594
More information about the client-libs-dev
mailing list