• 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 in commandline applications
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Garbage Collection in commandline applications
      • From: Adam P Jenkins <email@hidden>
References: 
 >Garbage Collection in commandline applications (From: Adam P Jenkins <email@hidden>)

  • Prev by Date: CoreData: Save password securly
  • Next by Date: Re: newbie alert: i'm confused: The XCode Quick Tour Guide
  • Previous by thread: Garbage Collection in commandline applications
  • Next by thread: Re: Garbage Collection in commandline applications
  • Index(es):
    • Date
    • Thread