[gold patch RFC]: Release unused external member of thin archive

Ian Lance Taylor iant@google.com
Mon Jul 12 13:59:00 GMT 2010


Hi Cary, does this patch look correct to you?  It explicitly unlocks an
external member of a thin archive if the member is not used.  That
avoids locking up the descriptor and possibly eventually running out of
descriptors.  I don't have a test case, but it seems like the right
thing.  If this looks right to you, I'll commit it.

Ian


2010-07-12  Ian Lance Taylor  <iant@google.com>

	* archive.cc (Archive::include_member): Unlock an external member
	of a thin archive.  Don't bother to delete an object we know is
	NULL.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-diff
Size: 887 bytes
Desc: unlock
URL: <https://sourceware.org/pipermail/binutils/attachments/20100712/e456b882/attachment.bin>


More information about the Binutils mailing list