my space:http://www.laaan.cn

as3 强制垃圾回收

A very important thing to understand about the Garbage Collector in FP9 is that it’s operations are deferred. Your objects will not be removed immediately when all active references are deleted, instead they will be removed at some indeterminate time in the future. The GC uses a set of heuristics that look at RAM allocation and the size of the memory stack to determine when to run. As a developer, you must accept that fact that you will have no way of knowing when your inactive objects will get deallocated. You must also be aware that inactive objects will continue to execute indefinitely -until the GC deallocates it, so code will keep running. 阅读全文——共874字
posted @ 2008-10-28 12:29  laan  阅读(59)  评论(0编辑  收藏  举报
my space:http://www.laaan.cn