In other words:
I need to know if after calling System.gc() object instances (that are not collected) are distributed between generations in the same way as before calling System.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.
After a Full GC, which a System.gc() may or may not trigger,
In short, the only time System.gc() won’t change objects between generations is when
Mostly because it hurts performance and you gain very little in return. Note: the RMI can trigger a full collection periodically to ensure distributed objects are cleaned up but it tries to keep this to a minimum.