垃圾回收
Golang垃圾回收-三色算法概览
· ☕ 2 分钟 · ✍️ 卓
三色标记-清除算法(tricolor mark-and-sweep algorithm) 把heap中的对象, 用黑色, 灰色, 白色进行标记 黑色对象: 已经以其为root执行过可达性分析的对象 灰色