Try to gc when we run out of file handles
Andrew Haley
aph@pasanda.cygnus.co.uk
Tue Jun 27 10:47:00 GMT 2000
> 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.
More information about the Java-patches
mailing list