This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]