{
 "article": "https://w.n14n.dev/garbage-collection/",
 "title": "Garbage collection",
 "how_to_cite": "Cite the source of a claim, not this article. The article is an AI-written summary.",
 "how_claims_link": "A section lists the claims of the sources it cites, so a claim supports the section, not one sentence.",
 "verified_values": {
  "verified": "a verifier found the quote on the source page",
  "rejected": "a verifier read the source page and did not find the quote, or found it does not support the claim",
  "blocked": "a verifier could not open the source page, so the quote is unconfirmed",
  "unchecked": "never put to a verifier"
 },
 "read_values": {
  "raw": "the full text was read",
  "extracted": "large parts of the text were read",
  "abstract": "only the abstract was read",
  "snippet": "only a search snippet or summary was read",
  "blocked": "the page could not be opened"
 },
 "grade_values": {
  "solid": "the research rated the source highly trustworthy, and a verifier found every passage taken from it",
  "weak": "the research rated the source low, or a verifier did not find a passage taken from it",
  "medium": "the research rated the source medium; neither weak nor solid",
  "unchecked": "the research rated the source high, but a verifier could not check every passage taken from it (page blocked or not checked)",
  "retracted": "the work was retracted or withdrawn after publication; the article cites it only to say so"
 },
 "evidence_values": {
  "contested": "studies disagree on this",
  "weak": "few or small studies support this",
  "failed-replication": "when the study was repeated, the original result did not appear",
  "strong": "many studies agree on this",
  "replicated": "when other teams repeated the study, the original result appeared again",
  "null": "no note: the article does not single out the section's evidence"
 },
 "sections": [
  {
   "title": "Lead",
   "anchor": "lead",
   "evidence": null,
   "claims": [
    "compilers:C-concepts-26",
    "compilers:C-concepts-24",
    "compilers:C-concepts-25",
    "compilers:C-concepts-29",
    "compilers:C-concepts-38",
    "compilers:C-concepts-32",
    "compilers:C-concepts-31"
   ]
  },
  {
   "title": "Tracing and reference counting",
   "anchor": "tracing-and-reference-counting",
   "evidence": null,
   "claims": [
    "compilers:C-concepts-26",
    "compilers:C-concepts-24",
    "compilers:C-concepts-25",
    "compilers:C-concepts-29",
    "compilers:C-concepts-27",
    "compilers:C-concepts-39"
   ]
  },
  {
   "title": "Generations and concurrent collection",
   "anchor": "generations-and-concurrent-collection",
   "evidence": null,
   "claims": [
    "compilers:C-concepts-29",
    "compilers:C-concepts-24",
    "compilers:C-concepts-25",
    "compilers:C-concepts-26",
    "compilers:C-concepts-28",
    "compilers:C-concepts-40",
    "compilers:C-concepts-30"
   ]
  },
  {
   "title": "Memory, execution time and responsiveness",
   "anchor": "memory-execution-time-and-responsiveness",
   "evidence": null,
   "claims": [
    "compilers:C-concepts-38",
    "compilers:C-concepts-37",
    "compilers:C-concepts-31",
    "compilers:C-concepts-32"
   ]
  },
  {
   "title": "Further reading",
   "anchor": "further-reading",
   "evidence": null,
   "claims": [
    "compilers:C-concepts-24",
    "compilers:C-concepts-25",
    "compilers:C-concepts-26",
    "compilers:C-concepts-29",
    "compilers:C-concepts-30",
    "compilers:C-concepts-31",
    "compilers:C-concepts-32"
   ]
  }
 ],
 "claims": [
  {
   "id": "compilers:C-concepts-26",
   "claim": "Mark-and-sweep collectors trace pointers from a set of roots and mark the objects they reach.",
   "quote": "starting at the root set and actually traversing the graph of pointer relationships",
   "source": {
    "id": "compilers:S-concepts-13",
    "key": "wilson1992",
    "author": "Wilson, Paul R.",
    "year": "1992",
    "title": "Uniprocessor garbage collection techniques",
    "publisher": "International Workshop on Memory Management, 1–42",
    "url": "https://condor.depaul.edu/dmumaugh/readings/handouts/CSC548/gcsurvey.pdf",
    "in_text": "Wilson (1992)",
    "type": "peer-reviewed",
    "read": "extracted",
    "trust": "medium",
    "trust_reason": "survey of others' algorithms; names sources; no own results; no stake"
   },
   "verified": "verified",
   "captured": null,
   "cited_in": [
    "lead",
    "tracing-and-reference-counting",
    "generations-and-concurrent-collection",
    "further-reading"
   ]
  },
  {
   "id": "compilers:C-concepts-24",
   "claim": "Basic reference counting can reclaim an object when its pointer count falls to zero.",
   "quote": "The memory occupied by an object may be reclaimed when the object’s count equals zero",
   "source": {
    "id": "compilers:S-concepts-13",
    "key": "wilson1992",
    "author": "Wilson, Paul R.",
    "year": "1992",
    "title": "Uniprocessor garbage collection techniques",
    "publisher": "International Workshop on Memory Management, 1–42",
    "url": "https://condor.depaul.edu/dmumaugh/readings/handouts/CSC548/gcsurvey.pdf",
    "in_text": "Wilson (1992)",
    "type": "peer-reviewed",
    "read": "extracted",
    "trust": "medium",
    "trust_reason": "survey of others' algorithms; names sources; no own results; no stake"
   },
   "verified": "verified",
   "captured": null,
   "cited_in": [
    "lead",
    "tracing-and-reference-counting",
    "generations-and-concurrent-collection",
    "further-reading"
   ]
  },
  {
   "id": "compilers:C-concepts-25",
   "claim": "Plain reference counting cannot reclaim unreachable cycles because each object in the cycle still has an incoming reference.",
   "quote": "the objects’ reference counts are never reduced to zero, even if there is no path to the objects from the root set",
   "source": {
    "id": "compilers:S-concepts-13",
    "key": "wilson1992",
    "author": "Wilson, Paul R.",
    "year": "1992",
    "title": "Uniprocessor garbage collection techniques",
    "publisher": "International Workshop on Memory Management, 1–42",
    "url": "https://condor.depaul.edu/dmumaugh/readings/handouts/CSC548/gcsurvey.pdf",
    "in_text": "Wilson (1992)",
    "type": "peer-reviewed",
    "read": "extracted",
    "trust": "medium",
    "trust_reason": "survey of others' algorithms; names sources; no own results; no stake"
   },
   "verified": "verified",
   "captured": null,
   "cited_in": [
    "lead",
    "tracing-and-reference-counting",
    "generations-and-concurrent-collection",
    "further-reading"
   ]
  },
  {
   "id": "compilers:C-concepts-29",
   "claim": "Generational collectors collect smaller memory regions more often to limit repeated work on long-lived objects.",
   "quote": "Generational schemes improve efficiency and locality by garbage collecting a smaller area more often",
   "source": {
    "id": "compilers:S-concepts-13",
    "key": "wilson1992",
    "author": "Wilson, Paul R.",
    "year": "1992",
    "title": "Uniprocessor garbage collection techniques",
    "publisher": "International Workshop on Memory Management, 1–42",
    "url": "https://condor.depaul.edu/dmumaugh/readings/handouts/CSC548/gcsurvey.pdf",
    "in_text": "Wilson (1992)",
    "type": "peer-reviewed",
    "read": "extracted",
    "trust": "medium",
    "trust_reason": "survey of others' algorithms; names sources; no own results; no stake"
   },
   "verified": "verified",
   "captured": null,
   "cited_in": [
    "lead",
    "tracing-and-reference-counting",
    "generations-and-concurrent-collection",
    "further-reading"
   ]
  },
  {
   "id": "compilers:C-concepts-38",
   "claim": "In experiments with five OpenJDK 21 collectors and 22 DaCapo Chopin benchmarks, garbage-collection CPU consumption rose as available memory shrank.",
   "quote": "Figure 1 shows the overhead of five OpenJDK 21 garbage collectors as a function of heap size, taking the geometric mean over all 22 DaCapo Chopin benchmarks ... CPU resources consumed by garbage collection rise as the available memory shrinks.",
   "source": {
    "id": "compilers:S-concepts-23",
    "key": "blackburn2025",
    "author": "Blackburn, Stephen M. and Cai, Zixian and Chen, Rui and Yang, Xi and Zhang, John and Zigman, John",
    "year": "2025",
    "title": "Rethinking Java performance analysis",
    "publisher": "Proceedings of the 30th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 1",
    "url": "https://www.steveblackburn.org/pubs/papers/dacapo-asplos-2025-with-appendix.pdf",
    "in_text": "Blackburn et al. (2025)",
    "type": "peer-reviewed",
    "read": "extracted",
    "trust": "high",
    "trust_reason": "own benchmark and measurements, method and workloads shown; no commercial stake in results; no flags"
   },
   "verified": "verified",
   "captured": null,
   "cited_in": [
    "lead",
    "memory-execution-time-and-responsiveness"
   ]
  },
  {
   "id": "compilers:C-concepts-32",
   "claim": "The same benchmark study found that collectors with shorter pauses sometimes had worse application latency than collectors that pause the program during collection.",
   "quote": "newer low-pause GCs are significantly more expensive than older GCs, and, surprisingly, sometimes deliver worse application latency than stop-the-world GCs.",
   "source": {
    "id": "compilers:S-concepts-17",
    "key": "cai2022",
    "author": "Cai, Zixian and Blackburn, Stephen M. and Bond, Michael D. and Maas, Martin",
    "year": "2022",
    "title": "Distilling the real cost of production garbage collectors",
    "publisher": "IEEE International Symposium on Performance Analysis of Systems and Software, 46–57",
    "url": "https://www.steveblackburn.org/pubs/papers/lbo-ispass-2022.pdf",
    "in_text": "Cai et al. (2022)",
    "type": "peer-reviewed",
    "read": "extracted",
    "trust": "high",
    "trust_reason": "own measurements, method shown (20 invocations, CIs, machines); grants disclosed; two authors at Google but no product evaluated; venue not named on page"
   },
   "verified": "verified",
   "captured": null,
   "cited_in": [
    "lead",
    "memory-execution-time-and-responsiveness",
    "further-reading"
   ]
  },
  {
   "id": "compilers:C-concepts-31",
   "claim": "Across 16 DaCapo benchmarks, at 2.4 times each benchmark’s minimum runnable heap measured with G1, the five OpenJDK 17 collectors spent an estimated 7–82% more wall-clock time at minimum, relative to estimated intrinsic application time, depending on collector.",
   "quote": "The LBO value for each configuration is the geometric mean over 16 DaCapo benchmarks. ... For a modest 2.4× heap, production GCs on average spend at least 7–82 % more wall-clock time",
   "source": {
    "id": "compilers:S-concepts-17",
    "key": "cai2022",
    "author": "Cai, Zixian and Blackburn, Stephen M. and Bond, Michael D. and Maas, Martin",
    "year": "2022",
    "title": "Distilling the real cost of production garbage collectors",
    "publisher": "IEEE International Symposium on Performance Analysis of Systems and Software, 46–57",
    "url": "https://www.steveblackburn.org/pubs/papers/lbo-ispass-2022.pdf",
    "in_text": "Cai et al. (2022)",
    "type": "peer-reviewed",
    "read": "extracted",
    "trust": "high",
    "trust_reason": "own measurements, method shown (20 invocations, CIs, machines); grants disclosed; two authors at Google but no product evaluated; venue not named on page"
   },
   "verified": "verified",
   "captured": null,
   "cited_in": [
    "lead",
    "memory-execution-time-and-responsiveness",
    "further-reading"
   ]
  },
  {
   "id": "compilers:C-concepts-27",
   "claim": "McCarthy's 1960 Lisp account describes a reclamation cycle that traces reachable storage from base registers.",
   "quote": "First, the program ﬁnds all registers accessible from the base registers",
   "source": {
    "id": "compilers:S-concepts-14",
    "key": "mccarthy1960",
    "author": "McCarthy, John",
    "year": "1960",
    "title": "Recursive functions of symbolic expressions and their computation by machine, Part I",
    "publisher": "Communications of the ACM, 3(4), 184–195",
    "url": "https://www.cs.tufts.edu/comp/150FP/archive/john-mccarthy/recursive.pdf",
    "in_text": "McCarthy (1960)",
    "type": "peer-reviewed",
    "read": "extracted",
    "trust": "high",
    "trust_reason": "author's own formalism and system described, no evaluation; no stake"
   },
   "verified": "verified",
   "captured": null,
   "cited_in": [
    "tracing-and-reference-counting"
   ]
  },
  {
   "id": "compilers:C-concepts-39",
   "claim": "Collins's 1960 paper described reclaiming shared list storage using counts of incoming references.",
   "quote": "The method employs interspersed reference counts to describe the extent of the overlapping.",
   "source": {
    "id": "compilers:S-concepts-24",
    "key": "collins1960",
    "author": "Collins, George E.",
    "year": "1960",
    "title": "A method for overlapping and erasure of lists",
    "publisher": "Communications of the ACM, 3(12), 655–657",
    "url": "https://osm.hpi.de/pt2/2018/PDF/Unit03-Freispeicherverwaltung.pdf",
    "in_text": "Collins (1960)",
    "type": "peer-reviewed",
    "read": "extracted",
    "trust": "medium",
    "trust_reason": "copy of a 1960 paper inside lecture slides by another body; describes a method, no results; venue not named"
   },
   "verified": "verified",
   "captured": null,
   "cited_in": [
    "tracing-and-reference-counting"
   ]
  },
  {
   "id": "compilers:C-concepts-28",
   "claim": "Lieberman and Hewitt proposed a collector designed to make storage for short-lived objects cheaper than storage for long-lived objects.",
   "quote": "makes storage for short-lived objects cheaper than storage for long-lived objects",
   "source": {
    "id": "compilers:S-concepts-15",
    "key": "lieberman1983",
    "author": "Lieberman, Henry and Hewitt, Carl",
    "year": "1983",
    "title": "A real-time garbage collector based on the lifetimes of objects",
    "publisher": "Communications of the ACM, 26(6), 419–429",
    "url": "https://www.cs.tufts.edu/comp/250RTS/archive/carl-hewitt/generational-gc.pdf",
    "in_text": "Lieberman & Hewitt (1983)",
    "type": "peer-reviewed",
    "read": "extracted",
    "trust": "high",
    "trust_reason": "describes the authors' own algorithm and design without performance claims; no stake in results"
   },
   "verified": "verified",
   "captured": null,
   "cited_in": [
    "generations-and-concurrent-collection"
   ]
  },
  {
   "id": "compilers:C-concepts-40",
   "claim": "The Generational ZGC design keeps young and old objects in separate generations so it can collect young objects more frequently.",
   "quote": "separate generations for young and old objects. This will allow ZGC to collect young objects — which tend to die young — more frequently.",
   "source": {
    "id": "compilers:S-concepts-25",
    "key": "vidstedt2023",
    "author": "Vidstedt, Mikael",
    "year": "2023",
    "title": "Generational Z Garbage Collector",
    "publisher": "Oracle CloudWorld",
    "url": "https://static.rainfocus.com/oracle/cwoh23/sess/1686591950248001yCz5/finalsessionfile/2023-09-13-2%20-%20LRN3834%20-%20Generational%20Z%20Garbage%20Collector_1694635407855001J5YO.pdf",
    "in_text": "Vidstedt (2023)",
    "type": "vendor",
    "read": "extracted",
    "trust": "low",
    "trust_reason": "Oracle slides on its own GC; performance claims from interested party with little method shown"
   },
   "verified": "verified",
   "captured": null,
   "cited_in": [
    "generations-and-concurrent-collection"
   ]
  },
  {
   "id": "compilers:C-concepts-30",
   "claim": "Dijkstra and colleagues described a design in which an extra processor handles most garbage collection while computation continues.",
   "quote": "performed by an additional processor operating concurrently with the processor devoted to the computation proper",
   "source": {
    "id": "compilers:S-concepts-16",
    "key": "dijkstra1978",
    "author": "Dijkstra, Edsger W. and Lamport, Leslie and Martin, A. J. and Scholten, C. S. and Steffens, E. F. M.",
    "year": "1978",
    "title": "On-the-fly garbage collection: An exercise in cooperation",
    "publisher": "Communications of the ACM, 21(11), 966–975",
    "url": "https://www.microsoft.com/en-us/research/wp-content/uploads/2016/12/On-the-fly-Garbage-Collection.pdf",
    "in_text": "Dijkstra et al. (1978)",
    "type": "peer-reviewed",
    "read": "extracted",
    "trust": "high",
    "trust_reason": "Primary publication or project documentation for its own claims."
   },
   "verified": "verified",
   "captured": null,
   "cited_in": [
    "generations-and-concurrent-collection",
    "further-reading"
   ]
  },
  {
   "id": "compilers:C-concepts-37",
   "claim": "In simulated Java runs, an Appel-style generational collector with a non-copying older generation matched reachability-based explicit memory management at five times as much memory.",
   "quote": "with five times as much memory, an Appel-style generational collector with a non-copying mature space matches the performance of reachability-based explicit memory management.",
   "source": {
    "id": "compilers:S-concepts-22",
    "key": "hertz2005",
    "author": "Hertz, Matthew and Berger, Emery D.",
    "year": "2005",
    "title": "Quantifying the performance of garbage collection vs. explicit memory management",
    "publisher": "ACM SIGPLAN Conference on Object-Oriented Programming, Systems, Languages, and Applications (OOPSLA)",
    "url": "https://www.cs.tufts.edu/comp/150BUGS/gcvsmalloc-2005.pdf",
    "in_text": "Hertz & Berger (2005)",
    "type": "peer-reviewed",
    "read": "extracted",
    "trust": "high",
    "trust_reason": "own benchmark experiments; method shown; no sample issue; NSF funding, no stake"
   },
   "verified": "verified",
   "captured": null,
   "cited_in": [
    "memory-execution-time-and-responsiveness"
   ]
  }
 ],
 "sources": {
  "blackburn2025": {
   "grade": "solid",
   "why": "Peer-reviewed, read in large part."
  },
  "cai2022": {
   "grade": "solid",
   "why": "Peer-reviewed, read in large part."
  },
  "collins1960": {
   "grade": "medium",
   "why": "Peer-reviewed, read in large part."
  },
  "dijkstra1978": {
   "grade": "solid",
   "why": "Peer-reviewed, read in large part."
  },
  "hertz2005": {
   "grade": "solid",
   "why": "Peer-reviewed, read in large part."
  },
  "lieberman1983": {
   "grade": "solid",
   "why": "Peer-reviewed, read in large part."
  },
  "mccarthy1960": {
   "grade": "solid",
   "why": "Peer-reviewed, read in large part."
  },
  "vidstedt2023": {
   "grade": "weak",
   "why": "Vendor page, read in large part."
  },
  "wilson1992": {
   "grade": "medium",
   "why": "Peer-reviewed, read in large part."
  }
 }
}
