How Generational GC works ?
Totally what is Generational GC ?
thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Wikipedia’s explanation.
Basically, it’s a heuristic approach. The Garbage collection puts newly created objects in a memory region (called white set), when this set is full, those objects that are still referenced are moved to another region, and the white set is cleared and populated with fresh new objects. The white set is the hypothesis that the objects found there are generally unreachable.
For further reading on JVM Fine-Tuning of Garbage Collection.