• 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: "Hamish Allan" <email@hidden>
  • Date: Sun, 6 Jul 2008 23:18:56 +0100

On 7/4/08, Chris Hanson <email@hidden> wrote:

> Under non-GC, an object's memory may not be reclaimed until the current
> autorelease pool is drained.  However, under GC, an object's memory can be
> reclaimed as soon as the collector can tell there are no more references to
> it -- no matter when that is.

I think Joan's point is not that there are circumstances in which the
GC will never reclaim, but that it is not possible to ensure
reclamation deterministically.

>From the docs:

--------
collectExhaustively
Tells the receiver to collect iteratively.

- (void)collectExhaustively

Discussion
You use this method to indicate to the collector that it should
perform an exhaustive collection. Collection is subject to
interruption on user input.

Availability Available in Mac OS X v10.5 and later.
Declared In NSGarbageCollector.h
--------

"Collection is subject to interruption on user input" -- with no
mention of when it might be re-started.

Hamish
_______________________________________________

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: garbage collection and NSConnection
      • From: "Sean McBride" <email@hidden>
    • Re: garbage collection and NSConnection
      • From: "Joan Lluch (casa)" <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: Chris Hanson <email@hidden>)

  • Prev by Date: Re: [Solved] Using key-value observing on NSUserDefaults
  • Next by Date: Re: Guidelines for Cocoa frameworks supporting garbage collection?
  • Previous by thread: Re: garbage collection and NSConnection
  • Next by thread: Re: garbage collection and NSConnection
  • Index(es):
    • Date
    • Thread