...
Note that objects in the younger generation that persist for longer durations are tenured and are moved to the tenured generation. Few younger-generation objects continue to live through to the next garbage-collection cycle. The rest become ready to be collected in the impending collection cycle [Oracle 2010a].
...
When an application goes through several phases, such as an initialization and a ready phase, it could require heap compaction between phases. The System.gc()
method may be invoked in such cases, provided that there is a suitable uneventful period occurs between phases.
Related Vulnerabilities
...