Re: Garbage collector vs variable lifetime
Re: Garbage collector vs variable lifetime
- Subject: Re: Garbage collector vs variable lifetime
- From: Nick Zitzmann <email@hidden>
- Date: Fri, 6 Jun 2008 17:30:07 -0600
On Jun 6, 2008, at 5:24 PM, Ricky Sharp wrote:
I'm a bit confused by this. In non-GC, data would not be released
during the loop execution. Let's assume that it was autoreleased
during the 'get it from somewhere'. It would only be actually
released when execution returns to the main run loop; clearly after
the entire loop above would be executed.
In GC, all collection goes on in a separate thread, which is why data
can be released during a loop.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
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