I know about flag -XX: Prunecher Sighthhandhold set to limit the size of the allocation in YG can go.
In addition, is there any other scenario / situation where new objects can be allocated space from the working period?
Is the new object size bigger than the Aden Space? Is the young generation being GC or the object duration is allocated from the field?
What happens if the new object size is larger than the Aden Space?
There are several things that can be :
- If there is enough free memory in the old space, then allot the object can go .
- If the size of the existing stack is smaller than the maximum heap size, then the GC can be run and the heap can be expanded. The result may be that the new place is big enough for the object.
- If there is not enough room in the old or new place after running GC, then the results of OOO will be the results.
The actual answer is JVM version dependent; See Question 2 as Hotspot 1.4.2 and what happened in the first Sun JVM (respectively).
Comments
Post a Comment