see a paragraph:
< H2 > before Minor GC occurs, the virtual machine checks whether the largest contiguous space available in the old era is larger than the total space of all objects in the new generation. If this condition is true, then Minor GC can ensure that it is safe. If not, the virtual machine checks to see if the HandlePromotionFailure setting allows the guarantee to fail. If allowed, it will continue to check whether the maximum available contiguous space in the old age is greater than the average size of the object promoted to the old age < / H2 >Why is the continuous space larger than the total space of all objects in the new generation? How do I think it is that the continuous space of the old era is greater than the space needed by the largest object of the new generation, rather than the "total space of all objects of the new generation"? Do all new generation objects have to be placed in a continuous space?
and the sentence "continue to check whether the largest contiguous space available in the old age is larger than the average size of objects promoted to the old age". Does this average size refer to the average size of a single object or the average size of the sum of all objects?