Home > Back-end >  2021-01-03: in Java, a description of what circumstance, the object will enter old age from the youn
2021-01-03: in Java, a description of what circumstance, the object will enter old age from the youn

Time:01-04

2021-01-03: in Java, a description of what circumstance, the object will enter old age from the young generation? # # f greatly architects a daily topic

CodePudding user response:

A generational GC, dynamic promotion

CodePudding user response:

1. The object is living for 15 years as old s
2. 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,
  • Related