Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Label cleaning algorithm

Shulou Source: shulou.com Published: 2022-06-03 07:06:25 10月04日 Update

Garbage collection mechanism strategy

1. Concept

It is divided into two stages: first, all the objects that need to be recycled are marked, and then all the marked objects are recycled uniformly.

Shortcoming

The main results are as follows: 1. The efficiency of marking phase and clearing phase is not high.

2. It is obvious that a large number of discontinuous memory fragments are produced after the cleanup, so that when the program needs to allocate larger objects, it is unable to find enough continuous memory and has to trigger a garbage collection action in advance.

Tags: Tags objects phases memory garbage larger obvious actions efficiency timing mechanisms concepts fragments programs policies shortcomings procedures allocation unification running Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple vpn NVidia Shulou Tech Info Linux