• 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: garbage collection and NSConnection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: garbage collection and NSConnection


  • Subject: Re: garbage collection and NSConnection
  • From: Chris Hanson <email@hidden>
  • Date: Fri, 04 Jul 2008 14:02:03 -0700

On Jul 4, 2008, at 9:32 AM, Joan Lluch (casa) wrote:

However, this is hardly possible with GC even if you trigger the GC manually in the middle of the loop. It simply will not release the memory at the rate you expect because it follows its own rules and as far as free memory is available it will not free anything unless it is a reason, according to its algorithms, to do so.

This situation should work. If it does not, that's something to report to Apple via the bug reporter http://bugreport.apple.com/ and, if possible attach a test case that demonstrates the issue.


Do not assume that it's simply the collector "follow[ing] its own rules." The collector should -- and DOES -- collect objects that it can tell are no longer referenced. In fact, we've had occasional threads here about objects used at the beginning of a method being collected while interior pointers that they've handed out are still in use, so it's not just hypothetical.

  -- Chris

_______________________________________________

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: 
 >Re: garbage collection and NSConnection (From: "Joan Lluch (casa)" <email@hidden>)
 >Re: garbage collection and NSConnection (From: "Michael Ash" <email@hidden>)
 >Re: garbage collection and NSConnection (From: Joan Lluch (casa) <email@hidden>)
 >Re: garbage collection and NSConnection (From: Jean-Daniel Dupas <email@hidden>)
 >Re: garbage collection and NSConnection (From: Joan Lluch (casa) <email@hidden>)

  • Prev by Date: Re: Style Question (Robert Claeson)
  • Next by Date: NSTextFields & other input controls in CALayer
  • Previous by thread: Re: garbage collection and NSConnection
  • Next by thread: Re: garbage collection and NSConnection
  • Index(es):
    • Date
    • Thread