This is the mail archive of the
java-discuss@sources.redhat.com
mailing list for the Java project.
Re: Precise GC (was Re: cannot build libjava/gnu/gcj/xlib/natClip.cc)
- To: Cedric Berger <cedric at wireless-networks dot com>
- Subject: Re: Precise GC (was Re: cannot build libjava/gnu/gcj/xlib/natClip.cc)
- From: Jeff Sturm <jsturm at detroit dot appnet dot com>
- Date: Thu, 4 Jan 2001 01:26:41 -0500 (EST)
- cc: Bryce McKinlay <bryce at albatross dot co dot nz>, jeff dot sturm at commerceone dot com, java-discuss at sources dot redhat dot com
On Wed, 3 Jan 2001, Cedric Berger wrote:
> Yes, but it's been proven to be almost impossible to "written defensively"
> this code. And there is a lot of such code. most of libgcj for example.
> Is libgcj "written defensively" ?
Not sure what you mean. But in our own code we do have many critical
sections that perform some cleanup action. Try...finally blocks work well
for this. (Note that the finally block is executed upon either
InterruptedException or ThreadDeath, so hitting these with Thread.stop
doesn't do any real harm.)
Jeff