What    |Removed                     |Added
                 CC|                            |

------- Comment #2 from  2009-04-19 17:36 -------
I agree that making the finalizers more deterministic is a good idea.
As discussed in the NG I see two problems:

1) the use of finalizers for any non memory related resource is dangerous and
should be avoided if possible. This because GC collections happens when the
memory is constrained, not when the resource is constrained, and so one might
unwillingly exhaust it. Thus making people use finalizers more and rely on the
GC is not necessarily a good idea.

2) There is a problem with daemon threads, threads that offer a service of
listen for events. It is not always good/easy to stop them, and you risk
strange errors. And no not using the GC in them is not a good option for them.



Reply via email to