[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-openjfx-dev
Subject:    Re: RFR: 8269907 memory leak - Dirty Nodes / Parent removed [v2]
From:       Florian Kirmaier <fkirmaier () openjdk ! java ! net>
Date:       2021-07-29 7:47:29
Message-ID: zgnv_9-B74QSCTHrchIDN4Cve5_-ad190ZQL4amHC-k=.cfcc69f6-ea45-4692-a9c3-79fe153921a6 () github ! com
[Download RAW message or body]

On Thu, 22 Jul 2021 11:50:11 GMT, Florian Kirmaier <fkirmaier@openjdk.org> wrote:

> > After thinking about this issue for some time, I've now got a solution.
> > I know put the scene in the state it is, before is was shown, when the dirtyNodes \
> > are unset, the whole scene is basically considered dirty.  This has the drawback \
> > of rerendering, whenever a window is "reshown", but it restores sanity about \
> > memory behaviour, which should be considered more important.
> 
> Florian Kirmaier has updated the pull request incrementally with one additional \
> commit since the last revision: 
> JDK-8269907
> The bug is now fixed in a new way. Toolkit now supports registering \
> CleanupListeners, which can clean up the dirty nodes, avoiding memoryleaks.

It would be possible to add it to the existing PulseListener, but i think it would be \
more complicated. It might require some code to decide whether it should only clean \
the dirty children, or do the full pulse. The logic to add/remove the listener also \
would have to be more complicated.

Actually it was my first approach, but i didn't find a good place "to get started".

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

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic