The Artima Developer Community
Sponsored Link

GC on exit

Advertisement

Advertisement

This page contains an archived post to the Design Forum (formerly called the Flexible Java Forum) made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

GC on exit

Posted by zol heyman on 01 Jun 1998, 12:11 PM

Are there any required actions of the jvm when the java process
is interrupted (like using ctrl-c). There doesn't seem to be.

Also, upon normal exit, finalizers may not run even if the
object is no longer referenced and even if a System.gc() is
issued.

You might want to mention the System.runFinalizersOnExit( )
method, which forces finalizers to be run upon normal system exit.
These seem to run even if the object is still referenced.

Zol Heyman



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us