arisu

2015年11月5日

检测对象是否被回收

摘要: 利用 使用弱引用的Dictionary对象的 key 来存储该对象, gc()后,然后检查 key 是否还存在。public class ObjectManager { private var dic:Dictionary = new Dictionary(true); /**检测间隔*/ ... 阅读全文

posted @ 2015-11-05 15:43 arisu 阅读(128) 评论(0) 推荐(0) 编辑

导航