开发者

Understanding how Adobe Flash Player Garbage Collector works

Can anyone tell me how the Flash Player Garbage Collector works please? No worry about version, even if you tell me about GC in Flash Player 8.0, 9.0, or 10.0 it does not matter.

Many articles in Adobe Connection just tell the same old things: trees, counters and indeterminacy of deallocation times... all things we know....

But how about deallocation policies? Are there pools just like CLR in .NET (well explained in MSDN) or any other particular approach? 开发者_运维技巧I am interested in the algorithms...

Thankyou.


Long story short, the Flash player (at least up to 11.2) will:

  • Mark an sweep objects based on any strong references
  • References are tracked via DRC (Deferred Reference Counting)

The best article I've found was on JPauclair's blog which goes into details: http://jpauclair.net/2009/12/23/tamarin-part-iii-current-garbage-collector-in-flash-10-0/

At the bottom he lists a few additional references / sources including the 3 part series by Grant Skinner.


Grant Skinner wrote a few good articles on garbage collection and resource management. You can find them here

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜