This is the mail archive of the java-patches@sourceware.cygnus.com 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]

Re: Try to gc when we run out of file handles


> Date: Mon, 26 Jun 2000 10:08:43 -0700 (PDT)
> From: Tom Tromey <tromey@cygnus.com>
> 
> Andrew> There's a memory and file descriptor leak in createTempFile().
> Andrew> This fixes it, I think.
> 
> I think you can just call "desc.close()" at the end of createTempFile.

This doesn't work, because desc.open () doesn't set the fd in desc.
It's still necessary to create a new desc.  I can close this new desc
straight away if you like.

Andrew.




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