超详细:
https://github.com/KeKe-Li/For-learning-Go-Tutorial/blob/master/src/spec/02.0.md
GC 算法有四种:
引用计数(reference counting)
标记-清除(mark & sweep)
节点复制(Copying Garbage Collection)
分代收集(Generational Garbage Collection)。
超详细:
https://github.com/KeKe-Li/For-learning-Go-Tutorial/blob/master/src/spec/02.0.md
GC 算法有四种:
引用计数(reference counting)
标记-清除(mark & sweep)
节点复制(Copying Garbage Collection)
分代收集(Generational Garbage Collection)。