On Wed, 6 Jul 2022 22:24:36 GMT, John Hendrikx <jhendr...@openjdk.org> wrote:
> You mean by `Disposer` something like `com.sun.prism.impl.Disposer`? I see > that it has a `ReferenceQueue` in it, so I'm guessing that's the mechanism > you are referring to. How would you want this triggered? I think a thread > blocking on the queue might be best. > > I think this is a very nice idea to potentially tackle this problem. We already have `com.sun.javafx.property.adapter.Disposer`, which polls a `ReferenceQueue` on a separate thread. It's used for JavaBean properties. ------------- PR: https://git.openjdk.org/jfx/pull/675