• 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: How to ease the burden on the Garbage Collector?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to ease the burden on the Garbage Collector?


  • Subject: Re: How to ease the burden on the Garbage Collector?
  • From: Jens Alfke <email@hidden>
  • Date: Fri, 9 Oct 2009 21:05:22 -0700


On Oct 9, 2009, at 7:23 AM, Gabriel Zachmann wrote:

http://zach.in.tu-clausthal.de/tmp/malloc1.png
http://zach.in.tu-clausthal.de/tmp/malloc2.png
http://zach.in.tu-clausthal.de/tmp/malloc3.png

Those are showing all malloc operations. Most of those are not garbage- collected, so they don't affect GC time. (I'm not sure exactly what symbol to trace if you want to watch just GC allocations.)


Are you sure you aren't just seeing the GC thread sitting and waiting for something to do?
THat would mean that the GC thread does busy waiting, wouldn't it?


No, it's blocked on a semaphore. But it still shows up in samples or backtraces (in mach_message_trap, usually.)

Here are the top lines of the call tree that I see in Shark.
It seems to me that they all belong to the same thread, the GC thread.

Yup, that shows about 20% (of a core) being spent in GC.

—Jens_______________________________________________

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: How to ease the burden on the Garbage Collector?
      • From: Gabriel Zachmann <email@hidden>
References: 
 >How to ease the burden on the Garbage Collector? (From: Gabriel Zachmann <email@hidden>)
 >Re: How to ease the burden on the Garbage Collector? (From: Bill Bumgarner <email@hidden>)
 >Re: How to ease the burden on the Garbage Collector? (From: Gabriel Zachmann <email@hidden>)

  • Prev by Date: Re: Hide an Item on Desktop
  • Next by Date: Re: Are these Apple or 3rd party classes?
  • Previous by thread: Re: How to ease the burden on the Garbage Collector?
  • Next by thread: Re: How to ease the burden on the Garbage Collector?
  • Index(es):
    • Date
    • Thread