garbage collection

Intermediate 💻 Tech / IT

Definition

An automatic memory management process that cleans up unused objects so programmers don't have to. It's like having a roommate who actually takes out the trash, except it occasionally pauses your entire application to do it.

Example Usage

The app freezes for a second during garbage collection when the heap gets full—we might need to tune the GC parameters.

Origin

Invented by John McCarthy for Lisp in 1959, one of the oldest concepts in computer science still in daily use

Fun Fact

Java developers love to hate garbage collection pauses, C++ developers love to hate having to manage memory manually, and everyone agrees the other side has it worse.

Source: Programming language design and memory management theory

Related Terms

Translate This Term

See “garbage collection” in Corporate Speak, Gen-Z Slang, Pirate Speak, and more.

Try the Translator