What is "garbage-collector"

Garbage Collector (Garbage Collector) is a process used for the automation of memory management. With it it is possible to recover an area of memory disabled by a program, which can prevent memory leakage problems, resulting in the depletion of free memory for allocation. This system contrasts with manual memory management, in which the programmer must explicitly specify when and which objects should be displaced and returned to the system. However, many systems use a combination of the two approaches.

Bibliographical references:

  • Jones, Richard; Lins, Rafael D. (1996). Garbage Collection: Algorithms for Automatic Dynamic Memory Management. Wiley.