An electronic system comprises a processor, memory coupled to the
processor, and an application programming interface that causes an
embedded garbage collection object to be active. The memory stores one or
more objects that selectively have references from root objects. The
embedded garbage collection object preferably uses control data to cause
objects to be removed from said memory, the removed objects comprise
those objects that were created while an embedded garbage collection
object was active and that do not have references from root objects.