<Swing Dev> [11] Review Request: 8198342 Test FileSystemViewListenerLeak.java is unstable

Sergey Bylokhov Sergey.Bylokhov at oracle.com
Tue Mar 13 05:27:17 UTC 2018


Hello.
Please review the update of the test for jdk11.

Bug: https://bugs.openjdk.java.net/browse/JDK-8198342
Webrev can be found at: http://cr.openjdk.java.net/~serb/8198342/webrev.00

This test creates a number of FileSystemView which internally register a 
listeners in UIManager, and the test assumes that these listeners will 
be removed when FileSystemView will be collected by GC.(The listener 
itself is removed by the Cleaner which uses a separate thread).

The problem is that in the high-loaded systems when the test is executed 
in parallel with many other heavyweight tests the cleaner's thread is 
not always able to remove the listeners in time and test fails.

In the fix the umber of FileSystemView in the test is decreased to 1, I 
have checked that the test still fail before related bug(JDK-8175968) 
was fixed.


-- 
Best regards, Sergey.



More information about the swing-dev mailing list