[vtkusers] VTK/Java crashes -- WeakGlobalRef or garbage collection problem...solution?

Denis Barbier bouzim at gmail.com
Thu Dec 17 06:01:44 EST 2009


On 2009/12/16 Clinton Stimpson wrote:
>
> How does this relate?
> <http://publib.boulder.ibm.com/infocenter/javasdk/v6r0/index.jsp?topic=/com.ibm.java.doc.diagnostics.60/html/mm_gc_coexist.html>
> "The Java service team strongly recommends that applications avoid the use of
> finalizers as far as possible.  The JVM specification states that finalizers
> should be used as an emergency clear-up of, for example, hardware resources."
>
> Seems to me a can of worms if one attempts to make the garbage collector
> thread safe.

+1

It would certainly be much safer to drop those finalizers and learn to
call Delete() when needed.

Denis



More information about the vtkusers mailing list