Skip to main content
This is lesson 4 of 7 in this module Course 58% complete

Generational Garbage Collection

Premium Content

Sign in with your account or sign up to access this lesson.

The lesson describes how mark-and-sweep causes pauses when all live objects must be re-scanned repeatedly, and how a three-generation garbage collector solves this problem by migrating surviving objects to progressively less-frequently-collected heaps. We illustrate the migration mechanics with concrete allocation scenarios.