RFR 9: 8138696 : java.lang.ref.Cleaner - an easy to use alternative to finalization

Mandy Chung mandy.chung at oracle.com
Tue Oct 13 15:55:02 UTC 2015

> On Oct 13, 2015, at 1:31 AM, Peter Levart <peter.levart at gmail.com> wrote:
> There is one usage of sun.misc.Cleaner.clean() in JavaFX, I think.

The only one I know is to invoke the cleaner of the DirectBuffer (are you referring to that)?  I can’t find any usage of sun.misc.Cleaner to create its own Cleaner (sun.misc.Cleaner was used in older version of JavaFX but AFAIK they are replaced with phantom references).


More information about the core-libs-dev mailing list