Re: Is ARC any smarter than Xcode's 'Analyze'?
Re: Is ARC any smarter than Xcode's 'Analyze'?
- Subject: Re: Is ARC any smarter than Xcode's 'Analyze'?
- From: Tom Davie <email@hidden>
- Date: Mon, 12 Nov 2012 17:32:28 +0000
On 12 Nov 2012, at 17:19, Jerry Krinock <email@hidden> wrote:
> I'm debugging a crash in a large project which evidence indicates is caused by a retain/release imbalance. The project is written with manual retain/release, not ARC.
>
> The project is built in Xcode 4.5.2, and when I 'Analyze', I get no warnings pertaining to memory management. So the problem must be some edge case which is not caught by 'Analyze'. Further, I think that ARC is built upon 'Analyze', and therefore if I converted this project to ARC, it would still crash.
>
> Am I correct?
Yes, ARC is significantly smarter than analyse. ARC is guaranteed to get memory management right (modulo retain cycles and weak refs that shouldn't be weak). Meanwhile the analyser is trying to understand what *you* did to try and make memory management right, which is a much much harder task.
Tom Davie
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden