A mechanism that automatically frees memory that's no longer in use.
A mechanism that detects unreachable objects and automatically frees their memory. In generational GC, the young generation, which holds most new objects, is collected frequently and quickly, while surviving objects are promoted to the old generation -- a common design that keeps overall stop-the-world pause time down.
© 2026 ITBGM