Re: Garbage Collection in commandline applications
Re: Garbage Collection in commandline applications
- Subject: Re: Garbage Collection in commandline applications
- From: "Kyle Sluder" <email@hidden>
- Date: Sat, 9 Feb 2008 02:27:26 -0500
On Feb 9, 2008 2:07 AM, Adam P Jenkins <email@hidden> wrote:
> Now when you click the button you'll see the CPU usage go to 100%, but
> the memory usage will stay constant. So it seems that something in
> the run loop in the GUI thread needs to be running regularly in order
> for GC to work.
>From the documentation:
"Only threads that have directly or indirectly performed an [NSThread
self] operation are subject to garbage collection."
Not to mention, I don't know if the garbage collector simply considers
any object allocated within your stack frame to be valid.
--Kyle Sluder
_______________________________________________
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