RFR: 8241840: Memoryleak: Closed focused Stages are not collected with Monocle. [v5]

Florian Kirmaier fkirmaier at openjdk.java.net
Tue Jul 21 12:37:53 UTC 2020


On Fri, 17 Apr 2020 12:57:28 GMT, Ambarish Rapte <arapte at openjdk.org> wrote:

>> The previous version of test failed on my Windows 10 machine with below exception, but the updated version does not
>> fail,
>> test.javafx.stage.FocusedWindowTest > testLeak FAILED
>>     junit.framework.AssertionFailedError: Expected: <null> but was: javafx.stage.Stage at 5fe60662
>>         at junit.framework.Assert.fail(Assert.java:47)
>>         at junit.framework.Assert.assertTrue(Assert.java:20)
>>         at junit.framework.Assert.assertNull(Assert.java:233)
>>         at junit.framework.Assert.assertNull(Assert.java:226)
>>         at test.javafx.stage.FocusedWindowTest.assertCollectable(FocusedWindowTest.java:133)
>>         at test.javafx.stage.FocusedWindowTest.testLeakOnce(FocusedWindowTest.java:116)
>>         at test.javafx.stage.FocusedWindowTest.testLeak(FocusedWindowTest.java:84)
>
>> Do you have a good recommendation on how to add it?
> 
> May be a test like `MeshManagerCacheLeakTest` should be able to solve the problem. I have not tried it myself, please
> check if it can help here.

See below command

-------------

PR: https://git.openjdk.java.net/jfx/pull/153


More information about the openjfx-dev mailing list