If implemented correctly the destroy() method can at most
cleanly forget all
references so as to make them garbage collectable.  It
doesn't call garbage
collection.

System.gc() also does not necessarily run the garbage
collection right there when
called.  This call only tells the garbage man "Hey come by
when you get a chance".

from JDK doc:
  When control returns from the method call, the Java
Virtual
  Machine has made a best effort to reclaim space from all
discarded
  objects.

nothing is guaranteed.

dave.

Campbell wrote:

>  (more of a java q, but seems fitting...) Is there a way
> to force garbage collection, such as with delete in
> C++? Phil

--
David Mossakowski              [EMAIL PROTECTED]
Programmer                           212.310.7275
Instinet Corporation

"I don't sit idly by, I'm planning a big surprise"

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to