[java/PATCH] PR 30454 Fix bootstrap on a couple of targets, empty "zip" file in class path can cause leakage of file streams

Andrew Pinski pinskia@gmail.com
Tue Jan 23 17:23:00 GMT 2007


Hi,
  The problem here is that empty "zip" files in the classpath would
cause leakage of file streams which meant after a while, we hit the
limit of opened files.  So when we try to open a class file, we would
fail.

This patch closes the file streams which are not referenced anywhere
after the call to opendir_in_zip because of a check failed.

OK? Bootstrapped on powerpc-darwin with an open file limit of 256.  The
testsuite is running right now and will be done later tonight but
getting the bootstrap up and working is important.

Thanks,
Andrew Pinski

	* jcf-io.c (opendir_in_zip): Close the file if there is an error
	in the zip file.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: fixjava.diff.txt
Type: text/x-patch
Size: 577 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20070123/785411f8/attachment.bin>


More information about the Gcc-patches mailing list