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

Reply via email to