The execution time from the young generation to the old generation and the scenarios in which the transition occurs

1. Determine whether an object needs to be transferred through the age counter. Each time the object is still alive after a GC, the age counter is incremented by one. When the age exceeds the set value, it will be transferred to the old age through the guarantee mechanism.

2. Or dynamic binding, when the number of objects with the same age in the Suvivor exceeds half, the objects whose age is greater than or equal to this age will be transferred to the old age without waiting for the maximum age value set.

3. Large objects enter the old age directly.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325970855&siteId=291194637