On Thu, 16 Feb 2023 14:38:21 GMT, Alexey Ivanov <[email protected]> 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. This pull request has now been integrated. Changeset: f835aaaf Author: Alexey Ivanov <[email protected]> URL: https://git.openjdk.org/jdk/commit/f835aaafc7332d324ca9b08b2a34539fc1c573aa Stats: 48 lines in 1 file changed: 18 ins; 8 del; 22 mod 8300727: java/awt/List/ListGarbageCollectionTest/AwtListGarbageCollectionTest.java failed with "List wasn't garbage collected" Reviewed-by: prr, tr, serb ------------- PR: https://git.openjdk.org/jdk/pull/12594
