垃圾回收是否与Go编译器(gc)一起工作?

huangapple go评论91阅读模式
英文:

Does garbage collection work with the Go compiler (gc)?

问题

我注意到gccgo中尚未实现垃圾回收。

http://golang.org/doc/gccgo_install.html#Unimplemented

标准的Go编译器(gc)是否已经支持垃圾回收?

英文:

I noticed that garbage collection is not yet implemented in gccgo.

http://golang.org/doc/gccgo_install.html#Unimplemented

Does the standard Go compiler (gc) support garbage collection yet?

答案1

得分: 9

gccgo有自己的运行时,计划是切换到使用一个由gc和gccgo共享的单一运行时。

此外,gc中当前的垃圾收集器相当简单,基于IBM的研究正在开发一种并发且更快的实现,很可能会成为gccgo和gc都使用的垃圾收集器。

英文:

gccgo has its own runtime, the plan is to switch to use a single runtime shared by both gc and gccgo.

Also, the current garbage collector in gc is rather simple, a concurrent and much faster implementation based on research done by IBM is under development, and will probably be the one used by both gccgo and gc.

答案2

得分: 7

是的。 <? 十五个字符>

英文:

Yes. <? fifteen chars>

huangapple
  • 本文由 发表于 2009年11月14日 05:22:22
  • 转载请务必保留本文链接:https://go.coder-hub.com/1732013.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定