• 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: GC pros and cons
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GC pros and cons


  • Subject: Re: GC pros and cons
  • From: Peter Duniho <email@hidden>
  • Date: Thu, 25 Jun 2009 09:41:55 -0700

On Jun 25, 2009, at 7:37 AM, Michael Ash wrote:

That may be the theory, Apple's ObjC collector does *not* trigger on
allocation errors (at least not reliably or sufficiently, and as such
it is possible to outrun the collector by creating a large number of
objects in a tight loop.

Well, as far as I'm concerned that's a bug then, and a somewhat silly one at that. There should be no reason they couldn't easily address that scenario, simply by using the thread attempting to do the allocation to run the collection code (with the usual synchronization/ execution management that you'd need in any collection/compaction scenario).


But then, that just reinforces the point that the Obj-C/Cocoa garbage collection implementation has some refinement left to accomplish. I'm glad to hear there've been bugs submitted on the issue; I expect Apple will address them eventually. Until they do, people who say that GC- managed memory in Cocoa isn't quite fully baked yet will actually have a good point. ;)

Pete
_______________________________________________

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: GC pros and cons
      • From: Bill Bumgarner <email@hidden>
References: 
 >Re: GC pros and cons (From: Quincey Morris <email@hidden>)
 >Re: GC pros and cons (From: Chris Idou <email@hidden>)
 >RE: GC pros and cons (From: Jeff Laing <email@hidden>)
 >Re: GC pros and cons (From: "Stephen J. Butler" <email@hidden>)
 >RE: GC pros and cons (From: Jeff Laing <email@hidden>)
 >Re: GC pros and cons (From: Quincey Morris <email@hidden>)
 >RE: GC pros and cons (From: Jeff Laing <email@hidden>)
 >Re: GC pros and cons (From: Peter Duniho <email@hidden>)
 >Re: GC pros and cons (From: Michael Ash <email@hidden>)
 >Re: GC pros and cons (From: Michael Ash <email@hidden>)

  • Prev by Date: Re: IBPlugin embedding question
  • Next by Date: Re: extending NSSavePanel, how to disable <save> button?
  • Previous by thread: Re: GC pros and cons
  • Next by thread: Re: GC pros and cons
  • Index(es):
    • Date
    • Thread