This is the mail archive of the
java-discuss@sourceware.cygnus.com
mailing list for the Java project.
Re: threads+CNI+SIGINT
- To: Oskar Liljeblad <osk at hem dot passagen dot se>
- Subject: Re: threads+CNI+SIGINT
- From: Jeff Sturm <jsturm at sigma6 dot com>
- Date: Mon, 27 Mar 2000 11:51:48 -0500
- CC: java-discuss at sourceware dot cygnus dot com
- Organization: AppNet
- References: <20000327175019.A10593@strix.eductussyd.se>
Oskar Liljeblad wrote:
>
> On Sunday, March 26, 2000 at 11:30, Jeff Sturm wrote:
>
> > Actually no GC cleanup is needed (the runFinalizersOnExit method is
> > deprecated; I don't recall whether libgcj even implements it). SIGINT
> > handling is necessary on Linux to ensure that all threads terminate, I
> > believe. With other thread packages it may not be needed at all.
>
> How do you deal with objects that override the finalize method,
> needing special finalization?
You don't. The runtime is not obligated to finalize any object, and
generally does not perform finalization at exit.
Don't confuse finalization with C++ destructors.
--
Jeff Sturm
jsturm@sigma6.com