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

Florian Kirmaier fkirmaier at openjdk.org
Mon Apr 3 07:25:37 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 would like to keep this PR. It's already been approved by one person.

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

PR Comment: https://git.openjdk.org/jfx/pull/689#issuecomment-1493812314


More information about the openjfx-dev mailing list