Garbage Collection

Garbage Collection is a form of automatic memory management, used by (often) higher-level programming languages to remove the need for complicated manual memory management. As a result, manual memory management is not implemented, and the developer relies on the garbage collection to handle memory, preventing bugs such as UAFs or Double-Frees.

The two main types are Tracing Garbage Collection (which is often just referred to as "Garbage Collection") and Automatic Reference Counting.

Last updated

Was this helpful?