What do you think what is garbage collection?
Our electronic definitions web site has answer for that as well:
is a `housekeeping` task carried out by software: many applications packages do
not rearrange their disk or immediate access storage when data is deleted and
the `free space` becomes distributed throughout memory. In order to reuse this
efficiently the package will need to collect the space together.