Re: ImageBrowser and Garbage Collection & 2D Graphics Release Notes
Re: ImageBrowser and Garbage Collection & 2D Graphics Release Notes
- Subject: Re: ImageBrowser and Garbage Collection & 2D Graphics Release Notes
- From: Erik Buck <email@hidden>
- Date: Thu, 8 Nov 2007 06:41:18 -0800 (PST)
I have no way of knowing for sure, but the ImageBrowser issue may be related to the more general issues that Quartz 2D may not work well with Garbage Collection and CoreImage may leak with Garbage collection: http://developer.apple.com/releasenotes/GraphicsImaging/RN-CoreImage/
Garbage collection in Objective-C 2.0 may not be quite ready for prime time at least for some application types. Garbage collection is very difficult to implement well, and it's doubly so when standard C is in the mix.
One area that heap based garbage collection has always/often fallen short is management of non-heap resources like graphics card memory, file descriptors, sockets, semaphores, message queues, shared memory, and distributed objects. Interestingly, reference counted management works well with all of those resources. I wrote a short summary of the foreseeable problems of Garbage Collection with Objective-C: "mark and sweep garbage collectors including the Boehm-Demers-Weiser conservative garbage collector suffer certain deficiencies when used with C or Objective-C: " http://www.cocoadev.com/index.pl?CocoaNeedsGarbageCollection
I am very interested to find out which of the problems Apple has avoided.
_______________________________________________
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