Actual, in Java the System.gc() is merely a suggestion.  Garbage collection
will still only happen when "the time is right".

The destroy() method can be used to free up resources, but garbage
collection does not necessarily occur at that time.  Again the VM is in
control of when GC actually occurs.  Us mere mortals can merely make
requests. ;^)

Dan

> ----------
> From:         Reisman Jason[SMTP:[EMAIL PROTECTED]]
> Reply To:     [EMAIL PROTECTED]
> Sent:         Thursday, November 04, 1999 9:11 AM
> To:   [EMAIL PROTECTED]
> Subject:      Re: Garbage collection
>
>
> Yes: System.gc();
>
>
>
>
>       Campbell <[EMAIL PROTECTED]>
> Sent by: A mailing list about Java Server Pages specification and
> reference <[EMAIL PROTECTED]>
>
> 11/04/99 10:20 AM
> Please respond to Campbell
>
>         To:        [EMAIL PROTECTED]
>         cc:
>         Subject:        Garbage collection
>
>
> (more of a java q, but seems fitting...)
>
> Is there a way to force garbage collection, such as with delete in C++?
>
> Phil
>
>
>

===========================================================================
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