Re: Opinion on managed memory and garbage collection
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