RFR: 8277848 Binding and Unbinding to List leads to memory leak [v9]

Andy Goryachev angorya at openjdk.org
Thu Jan 26 16:05:38 UTC 2023


On Thu, 26 Jan 2023 08:54:44 GMT, Florian Kirmaier <fkirmaier at openjdk.org> wrote:

>> Making the initial listener of the ListProperty weak fixes the problem.
>> The same is fixed for Set and Map.
>> Due to a smart implementation, this is done without any performance drawback.
>> (The trick is to have an object, which is both the WeakReference and the Changelistener)
>> By implying the same trick to the InvalidationListener, this should even improve the performance of the collection properties.
>
> Florian Kirmaier has updated the pull request incrementally with one additional commit since the last revision:
> 
>   JDK-8277848
>   Removed print statements

I wonder if this issue might be caused by [JDK-8299986](https://bugs.openjdk.org/browse/JDK-8299986) ?

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

PR: https://git.openjdk.org/jfx/pull/689


More information about the openjfx-dev mailing list