This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: System.gc() to close file descriptors (was RE: status of gcj's bo ehm collector?)
- From: Andrew Haley <aph at cambridge dot redhat dot com>
- To: tromey at redhat dot com
- Cc: "Boehm, Hans" <hans_boehm at hp dot com>,"'Adam Megacz'" <gcj at lists dot megacz dot com>, java at gcc dot gnu dot org
- Date: Sat, 15 Dec 2001 11:40:40 +0000 (GMT)
- Subject: Re: System.gc() to close file descriptors (was RE: status of gcj's bo ehm collector?)
- References: <40700B4C02ABD5119F000090278766443BEDFE@hplex1.hpl.hp.com><87adwlh6sw.fsf@creche.redhat.com>
Tom Tromey writes:
> >>>>> "Hans" == Boehm, Hans <hans_boehm@hp.com> writes:
>
> Hans> I looked at the gcj code a little more closely.
> Hans> System.runFinalization() also seems to have two other problems:
>
> I think we should get in the habit of reporting all these sorts of
> things to Gnats; we've dropped too many issues like this in the past.
>
> Andrew, are you still looking at this?
Yes, but it's fairly low priority.
I was thinking of running the finalizers in the finalization thread,
but making System.runFinalization() wait until it has been done: it's
easy enough to make finalization notify any waiting threads.
I'm concerned about deadlock and race conditions, though. Comments
welcome.
Andrew.