. - .
, , . , .
Memory management is carried out in pools in accordance with the generation. When the pool of memory of the young generation is full, a small collection takes place. Surviving objects are moved to the memory pool. When the accumulated generation memory pool is full, a large collection occurs. The third generation is preserved, which is known as the permanent generation and may contain objects that define classes and methods.
source
share