Re: ARC, Instruments and retain cycles
Re: ARC, Instruments and retain cycles
- Subject: Re: ARC, Instruments and retain cycles
- From: Matt Neuburg <email@hidden>
- Date: Sat, 07 Jan 2012 09:15:57 -0800
On Fri, 23 Dec 2011 12:58:50 +0800, Roland King <email@hidden> said:
>Does anyone know anything about improved leak detection in instruments especially as it pertains to retain cycles?
I don't know anything about "improved" because I don't know what it was like before. I can reliably make a retain cycle that Instruments does not report with its Leaks tool, as I describe in the Memory Management section of my book as revised for iOS 5; but this has to do with a block that refers to self being copied behind the scenes, and I'm not entirely surprised that Instruments can't keep up with that. On the other hand, ARC does sometimes warn of potential retain cycle due to a copied block (though it didn't in this instance), which I regard as right neighborly of it. m.
--
matt neuburg, phd = email@hidden, <http://www.apeth.net/matt/>
A fool + a tool + an autorelease pool = cool!
Programming iOS 4!
http://www.apeth.net/matt/default.html#iosbook _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden