[OpenJDK 2D-Dev] Cleaner usage in java2 / awt

Laurent Bourgès bourges.laurent at gmail.com
Fri Jan 8 21:00:19 UTC 2016


Phil,

I started changing the Marlin OffHeapArray class to use the new jdk
internal Cleaner instead of my own solution (ReferenceQueue +
PhantomReference + Thread). Or should I use the java2d Disposer instead ?

It seems working well and many lines are removed.

Do you plan adding a shared Cleaner instance (Thread) for java2d as the
java.base module will have ?

Probably it is also applicable to the sun.java2d.Disposer ?

It would reduce the number of running threads to dispose / free resources !

Regards,
Laurent
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/2d-dev/attachments/20160108/91039859/attachment.html>


More information about the 2d-dev mailing list