简体   繁体   中英

Can i use Apples garbage collector on non cocoa programs?

Apple provides it's own garbage collector implementation since 10.5.

I heared it is a conservative GC so i wonder if i can replace the Boehm-Weisser garbage collector in my pure C program. I'm using Boehm's GC for 7 years but it really lacks functionality when it comes to threads and using apples thread pool (aka Grand Central Dispatch) is impossible.

So how language dependent on Cocoa/Objective C is the garbage collector?

来自WWDC视频的苹果公司表示,libAuto( http://opensource.apple.com/source/libauto/libauto-180/ )与语言无关,因此几乎可以与任何语言一起使用。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM