Java Developer Series - Quest Software
Java Developer Series - Quest Software
Java Developer Series - Quest Software
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
<strong>Java</strong> Memory Management<br />
You Can Expect More.<br />
• As objects are created they’re stored within the JVM’s<br />
heap<br />
• They can only be removed in a JVM-controlled<br />
garbage collection<br />
– Removes objects that are no longer needed<br />
– Undecidable in general, so <strong>Java</strong> uses an<br />
approximation...<br />
• Removes objects that are no longer reachable (accessible<br />
to the program at the beginning of a garbage collection<br />
cycle)<br />
–The reachability test starts at the heap’s root set