- 论坛徽章:
- 2
|
主要就是Boehm GC,也就是LZ提到的libgc。
BGC有很多项目都在使用。包括一些编程语言的实现,原本是有机会实现精确gc的,都放弃而直接使用BGC了。
比如:
* [url=http://ecls.sourceforge.net/new-manual/ch28.html#ext.memory.intro]Embeddable Common Lisp[/url]
* Guile(Scheme)
尤其说明了直接使用保守gc的原因
The list of global variables is usually not too difficult to maintain, since global variables are relatively rare. However, an explicitly maintained list of local variables (in the author’s personal experience) is a nightmare to maintain. Thus, the BDW-GC uses a technique called conservative garbage collection, to make the local variable list unnecessary.
也可以理解为: I'm lazy。。。
* http://en.wikipedia.org/wiki/Boe ... ctor#Uses_and_ports <- 其他使用了BGC的项目
而其他的保守gc没有经过实践考验不太靠谱的样子,比如TinyGC。 |
|