> 
> 
> Kevin Gamiel wrote:
> > Absolutely.  I just found one problem where I am using a Debug object
> > that writes debugging messages to a single file from a few hundred
> > different threads.  I was using a PrintWriter but not explicitly closing
> > the stream after each message was written.  Kaffe is the only vm that
> > has complained about "too many open files".  
> 
> We should remember this bug, at least.  If the bug database is working 
> (http://cgi.kaffe.org/cgi-bin/kaffe) could you file a report on this?

The fix for this is of course to trigger a gc/finalization cycle if 
an open() fails because of EMFILE.

But closing fds explicitly is a good thing in any event, I think.

        - Godmar

Reply via email to