Garbage collector question

V

Vincent Cantin

... There is no way in Java to force the VM to do a full garbage
collection and
check that, although System.gc suggests that it try.

Thank you.
Vincent
 
X

xarax

Vincent Cantin said:
No .. this means weakly reachable, and *perhaps* no longer simply reachable.

Placing the reference into "yourObject" makes
it strongly reachable. So, the println message
is correct at the time it is executed.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top