• 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: Windows get released on 10.6, leak on 10.7
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Windows get released on 10.6, leak on 10.7


  • Subject: Re: Windows get released on 10.6, leak on 10.7
  • From: Corbin Dunn <email@hidden>
  • Date: Thu, 21 Jul 2011 15:40:50 -0700

On Jul 21, 2011, at 1:16 PM, Ross Carter wrote:

>> Just a long shot, but does this have anything to do with the new ARC (Automatic Reference Counting)?
>
> Joanna: The app uses GC, and was built long before ARC was announced. Everything gets collected on 10.6. I'm puzzled how ARC could affect GC.
>
>
>> Have you used Instruments to find out why? If not, then use the object alloc instrument with reference counting turned on. Then look at your window objects and try and figure out where the extra retain is happening.
>
>
> Nick: It's a GC app, so -retain is a no-op. My Instruments foo is not strong. What tool will show why an object is not getting collected?
>

Log the address of your object. Then, break in gdb and do:

info gc-roots <address>

Then see what is rooting it. also, try gc-references in it to see what references it, but roots are more important.

corbin

_______________________________________________

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

  • Follow-Ups:
    • Re: Windows get released on 10.6, leak on 10.7
      • From: Ross Carter <email@hidden>
References: 
 >Windows get released on 10.6, leak on 10.7 (From: Ross Carter <email@hidden>)
 >Re: Windows get released on 10.6, leak on 10.7 (From: vincent habchi <email@hidden>)
 >Re: Windows get released on 10.6, leak on 10.7 (From: Ross Carter <email@hidden>)

  • Prev by Date: Re: problem with dataWithContentsOfFile on Lion
  • Next by Date: CocoaHeads Silicon Valley tonight!
  • Previous by thread: Re: Windows get released on 10.6, leak on 10.7
  • Next by thread: Re: Windows get released on 10.6, leak on 10.7
  • Index(es):
    • Date
    • Thread