Re: GC pros and cons
Re: GC pros and cons
- Subject: Re: GC pros and cons
- From: Bill Bumgarner <email@hidden>
- Date: Fri, 26 Jun 2009 14:08:53 -0500
On Jun 26, 2009, at 1:31 PM, James Gregurich wrote:
If my resource is handed off to some external subsystem for release
and I can't DETERMINE the order of the releases with respect to each
other and other components of my code, then I would call that non-
deterministic and undesirable.
As soon as your resource is handed off to any subsystem that you did
not write, you can't determine the order of releases. Said subsystem
might release or it might cache for a while or it might retain it for
purposes of background processing (to be released later) or it might
autorelease or it might retain then autorelease in a different thread.
The point is the same as -retainCount. Once your object goes through
any of the system APIs, there is a chance that the retain count will
change and said behavior may differ based on architecture, OS release,
or something else.
b.bum
_______________________________________________
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