mina-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Rosenstrauch <dar...@darose.net>
Subject Re: memory leak? -- help needed
Date Fri, 15 May 2009 16:49:09 GMT
Emmanuel Lecharny wrote:
> In any case, the 'finalize' method is not one of my favorite method... Not
> only it has a very specific usage, but there is no guarantee whatsoever to
> be called by the GC. I will check if it's necessary to have it.

Good idea.  Not only is it not guaranteed to get called, but finalize 
can cause some very unexpected memory behavior.  See:

http://www.fasterj.com/articles/finalizer1.shtml
http://www.fasterj.com/articles/finalizer2.shtml

HTH,

DR

Mime
View raw message