Re: GC pros and cons
Re: GC pros and cons
- Subject: Re: GC pros and cons
- From: James Gregurich <email@hidden>
- Date: Fri, 26 Jun 2009 11:31:40 -0700
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.
feel free to disagree. the purpose of my message was to publish a solution I found useful. One is free to use it or ignore it.
On Thursday, June 25, 2009, at 11:39PM, "Chris Idou" <email@hidden> wrote:
>
>
>
>________________________________
>From: James Gregurich <email@hidden>
>
>> I have read up on GC, and I don't like the idea of introducing non-deterministic behavior into my code base.
>
>
>I would question the assertion that GC introduces non-deterministic behavior, unless you consider the time it takes for particular code to execute to be "behavior".
>
>In which case standard malloc/free is not deterministic either, since algorithms for amalgamating free areas in the heap are not exactly predictable, and the time they take will not be constant across different calls.
>
>That's why if you were controlling the space shuttle you wouldn't use malloc/free OR GC.
>
>
> Access Yahoo!7 Mail on your mobile. Anytime. Anywhere.
>Show me how: http://au.mobile.yahoo.com/mail
_______________________________________________
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