Interview Question: JVM Garbage Collection Algorithm

Purpose

Learning records, follow-up interviews are convenient.

Learning Resources

A learning video about high-frequency interview questions at Station B

JVM recycling algorithm

mark clear

There is a problem of "memory fragmentation", and the new version of the JVM no longer uses this garbage collection algorithm.

markup

old age use

mark copy

Used by the young generation. Mainly, there are fewer objects in the young generation than in the old generation.

other

How to "mark" and how to "organize" actually depends on the source code of the JVM implementation.

Guess you like

Origin blog.csdn.net/xiaozhengN/article/details/128600833