Posted in Go语言基础和工具链Go sync.Pool使用幻觉:当对象Put后被GC回收,而Get返回nil时,你真正需要的是sync.Map+原子计数器 第一章:Go sync.Pool … Go sync.Pool使用幻觉:当对象Put后被GC回收,而Get返回nil时,你真正需要的是sync.Map+原子计数器Read more by 程序员老李|2026年2月4日|nil返回值问题, Go动态加载, sync.Pool对比, sync.Map使用方法, 原子计数器, 类型对象回收
Posted in Go语言基础和工具链typeregistry map[string]reflect.Type的GC Roots图谱首次公开:为什么你的Type对象永不被回收? 第一章:typeregistry … typeregistry map[string]reflect.Type的GC Roots图谱首次公开:为什么你的Type对象永不被回收?Read more by 运维喵|2026年1月27日|Go语言内存管理, GC调优技术, reflect.TypeOf反射, debug/gcroots, typeregistry键设计, 类型对象回收