EulerFold
Systems Programming

Writing a Garbage Collector

6 weeks
0 Learners
Jul 23

Implementing mark-sweep and generational GC teaches memory management better than any lecture. This comprehensive curriculum is designed to give you hands-on experience with Writing a Garbage Collector.

Share:

About this Course

Implementing mark-sweep and generational GC teaches memory management better than any lecture. This comprehensive curriculum is designed to give you hands-on experience with Writing a Garbage Collector. This Systems Programming curriculum is designed to give you hands-on experience and deep conceptual understanding. Across 6 intensive modules, you'll tackle real-world challenges and build practical projects that reinforce your learning. By the end of this journey, you'll have the skills and proof of work to demonstrate your expertise.

What you'll learn

Build a basic bump allocator and define the object memory layout for a toy language runtime.
Write the core algorithms to trace live objects and reclaim unreachable memory.
Implement a generational collector that exploits the weak generational hypothesis for faster collection.
Understand how production GCs (Go, JVM, V8) minimize pause times and how to tune them.

Prerequisites

intermediate Level

Requires basic familiarity with the tech stack.

  • Familiarity with core concepts

Ideal for

CS Students & Language Implementers

Systems Programming Professionals
Tech Enthusiasts
W1

Memory Allocation & The Object Header

Build a basic bump allocator and define the object memory layout for a toy language runtime.

3 videos88m
3 readings
3 topics
1 homework
Learn

Topics

1.1
Anatomy of an Object in Memory
17 minutes
1.2
Bump Allocation vs Free Lists
27 minutes
1.3
Tracking Root References
44 minutes
W2

Implementing Mark and Sweep

Write the core algorithms to trace live objects and reclaim unreachable memory.

3 videos83m
3 readings
3 topics
1 homework
Learn
W3

Generational & Copying Garbage Collection

Implement a generational collector that exploits the weak generational hypothesis for faster collection.

3 videos29m
3 readings
3 topics
1 homework
Learn
W4

Concurrent Collection & GC in Production

Understand how production GCs (Go, JVM, V8) minimize pause times and how to tune them.

3 videos51m
3 readings
3 topics
1 homework
Learn
W5

Generational Garbage Collection

Implement the Weak Generational Hypothesis by separating objects by age to speed up GC pauses.

3 videos122m
3 readings
3 topics
1 homework
Learn
W6

Concurrent and Parallel GC

Reduce Stop-The-World (STW) pauses by executing garbage collection concurrently with the application thread.

3 videos70m
3 readings
3 topics
1 homework
Learn
01

Learn

Watch curated videos and read study resources

02

Practice

Practice what you learned

03

Build Projects

Build projects using your new gained knowledge

04

Submit & Verify

Submit your project and get verified by our system

Rate this course

0.0
0 reviews

Help the community find verified technical paths.

Community Insights

0

Join the discussion

Sign in to share your thoughts and technical insights.

Loading insights...