Garbage collection

/ˈgɑrbɪdʒ kəˈlɛkʃən/ noun

Definition

An automatic memory management process that identifies and frees memory that is no longer being used by a program. Garbage collection prevents memory leaks by reclaiming memory from objects that are no longer reachable.

Etymology

The term 'garbage collection' was coined by John McCarthy in 1959 for the Lisp programming language, using the metaphor of collecting and disposing of unwanted items (garbage) to describe reclaiming unused memory.

Kelly Says

Garbage collection is like having an invisible housekeeper for your computer's memory - it quietly goes around cleaning up objects you're no longer using, so you don't have to remember to throw everything away yourself! Without it, programs would eventually run out of memory like a hoarder's house running out of space.

Related Words

Explore More Words

Get the Word Orb API

Complete word intelligence in one call. Free tier — 50 lookups/day.