• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Is ARC any smarter than Xcode's 'Analyze'?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Is ARC any smarter than Xcode's 'Analyze'? (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Is ARC any smarter than Xcode's 'Analyze'?
  • Next by Date: Re: Is ARC any smarter than Xcode's 'Analyze'?
  • Previous by thread: Is ARC any smarter than Xcode's 'Analyze'?
  • Next by thread: Re: Is ARC any smarter than Xcode's 'Analyze'?
  • Index(es):
    • Date
    • Thread