Tagged articles

Concurrent Marking

4 articles · Page 1 of 1
Sanyou's Java Diary
Sanyou's Java Diary
Feb 22, 2022 · Backend Development

Understanding CMS and G1 Garbage Collection: Strategies, STW, and Performance Trade‑offs

This article explains the inner workings of Java's CMS and G1 garbage collectors, detailing their four-phase processes, the need for stop‑the‑world pauses, strategies like incremental update and SATB to handle missed marks, and compares their advantages, drawbacks, and suitable replacement scenarios.

CMSConcurrent MarkingGarbage Collection
0 likes · 11 min read
Understanding CMS and G1 Garbage Collection: Strategies, STW, and Performance Trade‑offs
Programmer DD
Programmer DD
Oct 19, 2021 · Backend Development

How the Three‑Color Marking Algorithm Powers Java’s CMS and G1 Garbage Collectors

This article explains the three‑color marking algorithm used by Java’s CMS and G1 garbage collectors, detailing the color semantics, algorithmic steps, common pitfalls such as floating garbage and miss‑marking, and the specific solutions each collector employs to minimize stop‑the‑world pauses and improve memory reclamation efficiency.

CMSConcurrent MarkingGarbage Collection
0 likes · 17 min read
How the Three‑Color Marking Algorithm Powers Java’s CMS and G1 Garbage Collectors
Tencent Cloud Developer
Tencent Cloud Developer
Aug 4, 2021 · Fundamentals

Golang Garbage Collection: Algorithms, Memory Management, and Evolution

The article details Go’s runtime memory architecture—including pages, spans, mcache, and size classes—and explains its non‑generational concurrent tri‑color mark‑and‑sweep garbage collector, the required write‑barrier techniques, and the collector’s evolution, phases, trigger mechanisms, and practical code examples across Go 1.0‑1.16.

Concurrent MarkingGarbage CollectionGo
0 likes · 30 min read
Golang Garbage Collection: Algorithms, Memory Management, and Evolution
Selected Java Interview Questions
Selected Java Interview Questions
Mar 11, 2021 · Fundamentals

Understanding ZGC: A Low‑Latency Garbage Collector for Java

The article explains ZGC, Oracle's low‑latency Java garbage collector introduced in JDK 11, covering its dynamic region layout, colored pointer technique, tri‑color marking, memory multi‑mapping, read barriers, operation phases, performance characteristics, and its main drawback of floating garbage.

Concurrent MarkingGarbage CollectionJava
0 likes · 11 min read
Understanding ZGC: A Low‑Latency Garbage Collector for Java