This is the mail archive of the
java-patches@sourceware.cygnus.com
mailing list for the Java project.
Re: Try to gc when we run out of file handles
- To: tromey at cygnus dot com
- Subject: Re: Try to gc when we run out of file handles
- From: Andrew Haley <aph at pasanda dot cygnus dot co dot uk>
- Date: 27 Jun 2000 17:47:31 -0000
- CC: java-patches at sourceware dot cygnus dot com
> 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.