Everything About ___
Live briefing

Everything about Mark–compact algorithm

Type of garbage collection algorithm

In computer science, a mark–compact algorithm is a type of garbage collection algorithm used to reclaim unreachable memory. Mark–compact algorithms can be regarded as a combination of the mark–sweep algorithm and Cheney's copying algorithm. First, reachable objects are marked, then a compacting step relocates the reachable (marked) objects towards the beginning of the heap area. Compacting garbage collection is used by modern JVMs, Microsoft's Common Language Runtime and by the Glasgow Haskell Compiler. Wikipedia →

đź§­ Start here: a 6-step reading path

  1. Read the overview: Mark–compact algorithmA 5-minute orientation
  2. Skim a recent paper: Runtime Analysis of the Compact Genetic Algorithm on the LeadingOnes BenchmarkInfluential work since 2022
  3. Pick up a classic book: Proceedings of the Twenty-Second Annual ACM Symposium on Principles of Distributed ComputingThe most-reprinted book on the subject
  4. Go sideways: Cheney's algorithmA closely related topic
  5. Go sideways: Garbage collection (computer science)A closely related topic

đź“– Definitions

No dictionary entry for this exact phrase.

🗂️ The subject at a glance

  1. Algorithms

🏆 Landmark papers (most cited)

🆕 Influential since 2022

📚 Books worth reading

Ranked by number of editions on Open Library, a rough measure of how lasting a book is.

đź”— Related topics