Garbage Collection

Each object created in an object-oriented programming (OOP) language requires a particular allocation of system memory. Each object's allocation of memory varies, but the more objects created, the more memory consumed, and the fewer resources remain available. When objects are no longer used by the system, they're gathered and destroyed in order to reclaim the memory they consumed.

Compartmentalization makes a system more flexible and modular but increases the number of objects used in an application. Using design patterns to achieve a flexible and loosely coupled architecture enables code reuse and polymorphism. However, the collaborations among objects that allow for such flexibility require attention to memory management. ...

Get AdvancED ActionScript 3.0: Design Patterns now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.