System.gc() to close file descriptors (was RE: status of gcj's bo ehm collector?)

Andrew Haley aph@cambridge.redhat.com
Sat Dec 15 03:42:00 GMT 2001


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.


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /