copying garbage collection

copying garbage collection

A garbage collection method where memory is divided into twoequal halves, known as the "from space" and "to space".Garbage collection copies active cells from the from space tothe to space and leaves behind an invisible pointer (an"indirection") from the old position to the new copy. Onceall active cells have been copied in one direction, the spacesare swapped and the process repeated in the oppositedirection.