CodePudding user response:
A generational GC, dynamic promotionCodePudding user response:
1. The object is living for 15 years as old s2. The object is big enough (if the young generation in the sum of all the object size is the same age is more than half of the young generation space, age is greater than or equal to the age of the object can be directly into the old s)
3. In a large number of objects in the case of Minor GC still alive after the most extreme cases (is memory recovery after all objects in the new generation live), will need to allocate the old s guarantee, the young generation can't accommodate the object directly into old age,