Skip to content

Garbage Collection

Hotspot Architecture

Automatic GC

  • Marking
  • Normal Deletion
  • Deletion with compacting

Generational GC

  • Object Allocation
  • Filling with Eden Space
  • Copying referenced objects
  • Object Aging
  • Promotion

Refferences

  1. Oracle - Java Garbage Collection Basics