What Does Garbage Collector Mean?
A garbage collector is a piece of software that performs automatic memory management. Its job is to free any unused memory and ensure that no memory is freed while it is still in use. Some languages such as Java and .NET languages feature automatic garbage collection, whereas others such as C/C++ require the programmer to manual manage memory.
Techopedia Explains Garbage Collector
Garbage collection was first introduced by Lisp creator John McCarthy to ease the manual memory management when working with the Lisp language.