Re:Mac Apps That Use Garbage Collection Must Move to ARC
by tjl on Saturday February 21, 2015 @04:38PM
(#9087084)
Objective-C uses autorelease pools so deallocation doesn't happen immediately when the refcount goes to zero. Its reference counting implementation is smarter than a simple naïve one.
Apple's GC implementation wasn't a Boehm GC [1].
It's true that it's hard to use a tracing GC with Objective-C, because of the C. But, if you want interoperability with C, you're kind of stuck.
Apple's GC implementation wasn't a Boehm GC [1].
It's true that it's hard to use a tracing GC with Objective-C, because of the C. But, if you want interoperability with C, you're kind of stuck.
[1] http://www.reddit.com/r/programming/comments/2wo18p/mac_apps...