• 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: Opinion on managed memory and garbage collection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Opinion on managed memory and garbage collection


  • Subject: Re: Opinion on managed memory and garbage collection
  • From: "Sean McBride" <email@hidden>
  • Date: Tue, 23 Jun 2009 17:39:59 -0400
  • Organization: Rogue Research Inc.

On 6/22/09 7:58 AM, Phil Hystad said:

>If you were writing a new Cocoa application from scratch, would
>garbage collection be the preferred method over the reference counting
>(retain/release) method.

I switched to GC-only during the 10.5 betas, and my answer is: Yes.

Others have made good comments, I'll simply add that the tools support
on 10.5 is weaker than with retain-release.  There are all kinds of
limitations (individually minor, but in summation major):
 - Instruments reports zillions of false positives when checking for leaks
 - there's no guard malloc for GC memory
 - OpenGL Profiler doesn't work with GC apps
 - CHUD.framework is not dual mode, so can't be linked against
 - MallocDebug.app crashes with GC apps
 - etc. etc. etc.

Otherwise, GC has been a great experience for me.

No doubt things will improve in 10.6....

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________

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: Opinion on managed memory and garbage collection
      • From: Rob Keniger <email@hidden>
References: 
 >Opinion on managed memory and garbage collection (From: Phil Hystad <email@hidden>)

  • Prev by Date: RE: Core Data Fetching Limitations?
  • Next by Date: Re: Warnings suggest compiler confusion between 32 and 64 bit code.
  • Previous by thread: Re: Realtime, GC and ObjC (Was Re: Opinion on managed memory and garbage collection)
  • Next by thread: Re: Opinion on managed memory and garbage collection
  • Index(es):
    • Date
    • Thread