Skip to main content

Garbage Collection Cycles

Learn Garbage Collection Cycles (Garbage Collection, Java) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

6. Basic Concepts What is a GC Cycle? A GC cycle is one complete run of the garbage collector - from deciding it needs to collect, to actually reclaiming memory, to handing control back to your application. Every GC cycle, regardless of which collector is running, generally goes through the same three conceptual phases: Mark , Sweep/Compact , and Promote .

More lessons in Garbage Collection