Jvm gi collector, jvmgi collection
Garbage-First is a server-side Garbage collector.
- Parallelism and concurrency: Make full use of multi-core environments to reduce the pause time,
- Generational collection: No need to work with other collectors
- Spatial integration: in general, it is a tag sorting algorithm. Partial Data Replication Algorithms do not produce space fragments during operation.
- The pause is predictable, and a predictable pause time model is established.
Memory Management:
- The entire java heap is divided into multiple regions in the same size. The new generation and old generation are a collection of region. It is possible to avoid garbage collection in the whole region in a planned manner.
- Recycling Method: track the value of garbage accumulation in each region (the size of the collected space and the time-consuming experience), maintain a priority list, each time based on the allowed recycling time, priority is given to region (GI name origin ),
- References between region, references between the new generation and the old age are based on the remebered set to avoid full scanning. Each region maintains a remebered set,
- Initial mark-concurrent mark-final mark-filter and recycle, class CMS